.NET Website with References in GAC how to deploy

Posted on 2009-04-27
Last Modified: 2012-05-06
Hi Experts,

Quick question which I thought would be easily answered.

I have a .net website, which has references to dlls in the GAC.

When I build this and deploy to another server (in production) which doesn't have the same DLL references in the GAC, how can i get the dlls across?
Question by:samrose
    LVL 9

    Expert Comment

    I usually add a directory "References" to my solution and then copy the dll files there. After that in your Solution Explorer right click the Project and say "Add Reference" and go to browse tab and browse for the dll. This way your application is not relying on the GAC, at least not for 3rd party assemblies.

    LVL 2

    Author Comment

    It is just as simple as that then, not reference the gac, copy dll's into another folder reference and deploy...
    LVL 9

    Accepted Solution


    If this is a manual process where you copy across you're website, you'll have to seperately copy your GAC dll and install that on your production server.

    You can do this using GacUtil.exe (found in the Visual Studio/SDK/bin folder) or you can use the Admin Tools.NET Framework 2.0 Configuration MMC Snapin under Control Panel.
    LVL 9

    Expert Comment

    by:Sreedhar Vengala

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now