By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,274 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,274 IT Pros & Developers. It's quick & easy.

reference an assembly in the GAC

P: n/a

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
ja******@online.microsoft.com

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

--------------------
From: bill joyce <bi*******@hotmail.com>
X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
Subject: reference an assembly in the GAC
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <e5**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Date: Wed, 15 Oct 2003 08:45:13 -0700
NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
Lines: 1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:184341
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 17 '05 #2

P: n/a


Thanks, that did it!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3

P: n/a
Hi Bill,

Glad to help.

Jim Cheshire [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
From: billj2 <billj2>
References: <wF**************@cpmsftngxa06.phx.gbl>
X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
Subject: RE: reference an assembly in the GAC
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <#u**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Date: Thu, 16 Oct 2003 06:11:58 -0700
NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
Lines: 1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:184625
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Thanks, that did it!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.