Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / April 2006

Tip: Looking for answers? Try searching our database.

Referencing a GAC assembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vi - 11 Apr 2006 17:27 GMT
Hi,
I have an assembly in GAC that I'm using from an ASP.NET application. I'm
referencing it from my web app by inserting the <asemblies> section in
web.config:

<compilation>
<assemblies>
<add assembly=.... >
</assemblies></compilation>

Now I'm trying to use the same GAC assembly from a windows service project.
I added App.config to the project, I inserted the same <assemblies> section,
but it does not work.

I read that the <assemblies> section is used "during compilation of an
ASP.NET application". Does anybody know how to do the same thing for a
non-ASP.NET application (for a windows service application)?

Thanks
Mattias Sjögren - 11 Apr 2006 21:19 GMT
>I read that the <assemblies> section is used "during compilation of an
>ASP.NET application". Does anybody know how to do the same thing for a
>non-ASP.NET application (for a windows service application)?

Are you using Visual Studio? If so just reference the assembly from
the Solution Explorer. You'll need to point to a copy outside of the
GAC.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.