Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

deploying a DLL

Posted on 2011-09-30
6
Medium Priority
?
442 Views
Last Modified: 2012-05-12
I have VB.NET DLL.  It is used by multiple solutions.  In Visual Studio, when I add the reference, it copies the DLL, XML and PDB file into the BIN folder.   When I deploy my apps in a production environment, I do not multiple copies of these files in each app folder.   How do I deploy correctly?  
0
Comment
Question by:HLRosenberger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
khairil earned 1332 total points
ID: 36893589
Hi,

You can deploy them into GAC, so that they can be shareable. This is how to use Visual Studio to deploy them into GAC, http://support.microsoft.com/kb/324168
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 668 total points
ID: 36893599
You need to give your DLL a strong name

http://msdn.microsoft.com/en-us/library/xc31ft41.aspx

and then deploy it to GAC(Global Assembly Cache)

http://support.microsoft.com/kb/315682
0
 
LVL 13

Assisted Solution

by:khairil
khairil earned 1332 total points
ID: 36893621
Do not worry about XML and PBD file. The XML just about resource manager and PBD is debug file.  You just need to include the DLL into your distribution package.

Make sure you set your final compilation set to release mode. Debug mode have at lot of other symbols put into the binary, which will have performance impact on during runtime.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 36893894
Thanks to all
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 36893929
What happens what I compile a new version of the DLL?  I just redeploy into the GAC on the target system?   What does the strong name signing do?
0
 
LVL 13

Expert Comment

by:khairil
ID: 36895575
Yup, if your DLL does not require any other resources that have been changed, then you can simple copy the updated assembly in the GAC.

Strong names satisfy the following requirements:
1. Guarantee name uniqueness as an assembly generated with one private key has a different name than an assembly generated with another private key.

2. Strong names protect the subsequent  version lineage of an assembly

3. Strong name passed the .NET Framework security checks guarantees that the contents of the assembly have not been changed since it was built.

This article is very good explaination about Strong Name, have time to read it, http://www.codeproject.com/KB/security/StrongNameExplained.aspx

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 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