reference an assembly in the GAC

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
 
J

Jim Cheshire [MSFT]

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.

--------------------
 
J

Jim Cheshire [MSFT]

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.

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top