nbruckelmyer
Programmer
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="Login.Components, Version=1.0.1243.15239, Culture=neutral, PublicKeyToken=8809590d719f7d48"/>
</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="Login.Components" %>, but I can't use that in my codebehind.
Please help if you can.
Thanks.
Login.dll
Web.Config
<compilation>
<assemblies>
<add assembly="Login.Components, Version=1.0.1243.15239, Culture=neutral, PublicKeyToken=8809590d719f7d48"/>
</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="Login.Components" %>, but I can't use that in my codebehind.
Please help if you can.
Thanks.