Solved

Copying GAC assemblies to local folder and maintain version numbers

Posted on 2008-10-17
4
532 Views
Last Modified: 2013-11-07
Hi all,

I have a web application that requires the use of DLL's GAC'ed in my local but the same DLL's are not GAC'ed in the server I"m deploying too.  I'm trying to pull the GAC DLL's but whenever I do so, the DLL version number changes.  Is there a way for me to do this without changing the version numbers so that I can go and deploy my app?  

Thanks!
0
Comment
Question by:valencehealth
  • 3
4 Comments
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22741631
how are you pulling the dll from GAC?

goto command prompt
change to directory c:\windows\assembly\gac_msil\<assembly name>\<version>

copy <dll name> <destination folder>

this should copy the dll from GAC to the destination folder
0
 

Author Comment

by:valencehealth
ID: 22741667
UNfortunately, I tried that and a weird behavior started happening. The DLL versions would change (say 10.5.3700.0 to 10.5.0.251), which I found strange. It would change after I would copy the DLL's over.  Any ideas?
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22741912
The version displayed on the GAC is not always same as the version you see on the properties page of the dll. you can see that how many times ever you copy from gac the dll properties will display the same number. you can install this to the GAC of the other machine.
0
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 500 total points
ID: 22741946
Make sure that the version in dll is the right one that you want to be installed.

difference about the file version and assembly version can be found in the article below
http://blogs.msdn.com/junfeng/archive/2004/02/14/72666.aspx
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
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…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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