Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import my assembly from GAC

Status
Not open for further replies.

nbruckelmyer

Programmer
May 28, 2003
6
US
Hi, I have an assembly in my Global Assembly Cache that I would like to access in a ASP.Net code behind page. I am pointing my web.config to the assembly I need to use in GAC. I then want to access the file in my code behind. Is there a way to do this. I would rather not copy the .dll file into the project's bin folder. Here is an example of what I have.

Login.dll

Web.Config
<compilation>
<assemblies>
<add assembly=&quot;Login.Components, Version=1.0.1243.15239, Culture=neutral, PublicKeyToken=8809590d719f7d48&quot;/>
</assemblies>
</compilation>

I then want to say: Dim l as new Login() but I can't seem to get the file in my code behind. I can import it into my .aspx file <%@ Import Namespace=&quot;Login.Components&quot; %>, but I can't use that in my codebehind.

Please help if you can.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top