Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Best way to Reference Shared Assembly?

Thread Tools

Re: Best way to Reference Shared Assembly?

bruce barker
Posts: n/a
the best is to not use the gac, but add the dll to the web site (whats a
little disk space) and it makes deployment easier.

-- bruce (

"Chris Mohan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I've built an assembly that's going to be deployed to the global assembly

cache of a few servers and I'm wonder what the best way to reference it is?
I need to do it so apps written without visual studio.
> I've deployed the assembly to my local machine's GAC and currently

reference it in an app's web.config file within the compilation\assemblies
> Is it better to add a section name handler for the assemblies

type/namespace within the machine.config file? If i do this will i still
have to add a reference within each apps web.config file?
> The web.config reference:
> ie:
> <assemblies>
> ----<add assembly="MyAssembly, Version=1.0.2411.0,
> ---------- Culture=neutral,
> ---------- PublicKeyToken=xyzpdq1234"/>
> </assemblies>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0: master pages and web user controls: reference to a non-shared member requires an object reference bminder ASP .Net 0 06-24-2005 12:22 AM 2005 question re: "reference to a non-shared member requires an object reference" ce ASP .Net 1 06-23-2005 09:15 PM
Shared, why not a 'Local Shared' (re: Session and ViewState dislike) ben ASP .Net 3 11-15-2004 03:04 PM
Shared Public Variables and Shared Methods Joe Fallon ASP .Net 3 07-16-2004 07:11 AM
Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class. DJ Dev ASP .Net 3 02-08-2004 04:19 PM