"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
Hello Mythran,
For the GAC assemblies u need to specify the fully qualified name in
web.config.
only if your assembly is not in gac (in bin directory) u can refer to by
without full-qualified name
When I create an aspx page and drop a control that is located in the
assembly in the GAC, regardless of what I have in my web.config, the IDE
still inserts the fully qualified assembly name in the page. I have to
manually remove the fully qualified name and replace it with the partial
name. Is there a way to have the IDE only insert the assembly's partial
name into the ASPX page for the assemblies located in the GAC?
Basically, what I have, just to make sure we are on the same page:
Created a web control in an assembly, gave it a strong name, and installed
it into the GAC.
Created a web project and referenced the assembly in the GAC.
Added the web control from the GAC'ed assembly to the toolbox.
Modified the web.config file and placed the <qualifyAssemblyelement (and
proper parent/child elements).
Drag-n-dropped the web control from the toolbox onto the form.
Open the form in HTML view and at the top of the html, the @Register
directive shows the fully qualified assembly name.
I manually change this name to the partial name which matches the partial
name stored in the web.config file but I don't want to have to do this if
the IDE can see I don't need the fully qualified name. I doubt much can be
done to "force" the ide to listen to me but hey, worth a shot.
Thanks,
Mythran