reference an assembly in the GAC

  • Thread starter Thread starter bill joyce
  • Start date Start date
B

bill joyce

I have installed an assembly in the GAC ( a DAL), now I want to make a
reference to it in my Business Obj.

This is one way I found out how to do it is there another way?

<system.web>
<compilation debug='true'>
<assemblies>
add assembly="DAL, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=17177e16a4b86577" />
</assemblies>
</compilation>
</system.web>

Thanks
Bill
 
Bill,

Are you using inline code or code-behind? If you are using inline code,
you would want to use the <assemblies> element and add a reference there.
If you are using VS.NET and code-behind, your reference will be compiled
into the assembly and no other changes are required.

You will also want to make sure that the CopyLocal property for the
assembly reference in VS.NET is set to False.

Jim Cheshire [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
 
Hi Bill,

Glad to help.

Jim Cheshire [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
 
Back
Top