[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

.NET Website with References in GAC how to deploy

Posted on 2009-04-27
5
Medium Priority
?
344 Views
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?
0
Comment
Question by:samrose
  • 2
4 Comments
 
LVL 9

Expert Comment

by:tillgeffken
ID: 24240039
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.

HtH.
 
0
 
LVL 2

Author Comment

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

Accepted Solution

by:
Sreedhar Vengala earned 2000 total points
ID: 24240115

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.
0
 
LVL 9

Expert Comment

by:Sreedhar Vengala
ID: 24240754
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month19 days, 20 hours left to enroll

872 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