How to add a reference to assemblies that are in the GAC folder

I've searched everywhere and it looks like you have to "Add a new registry key", is this true ?

even for VS2008 / VS2010?

or can I reference it in the web.fig file?

I'm new to this, so what I just said prob makes no sense?

thanks
mousemat24Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dirk HaestProject managerCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mousemat24Author Commented:
so can you add a ref via the web.config file? will that work?
0
Dirk HaestProject managerCommented:
Reference GAC assemblies from web.config
http://weblogs.asp.net/mnissen/pages/151647.aspx
0
mousemat24Author Commented:
ok, I've seen many people ask the question I posted, so why dont they add they Reference the GAC assemblies in the web.config?

rather then adding it via the "add reference dialog box"? Is it bad pratice to add it manaully in the web.config file?

thanks
0
Dirk HaestProject managerCommented:
When you add a reference to an assembly from the global assembly cache, Microsoft Visual Web Developer creates an entry in the Assemblies element of the site's Web.config file. If you add a reference to an assembly from another project, the assembly is copied to the \Bin folder of your Web project and updated as needed by Visual Web Developer.

Source: http://msdn.microsoft.com/en-us/library/ms178728(v=vs.90).aspx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.