Solved

deploying a DLL

Posted on 2011-09-30
6
434 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
  • 3
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
khairil earned 333 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 167 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 333 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Problem to refer to value 8 62
vb.net winforms sizing/resolution? 4 42
vb.net and creating a class 5 20
Need help converting bitmap to image in VB.Net 8 21
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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