Solved

Copying GAC assemblies to local folder and maintain version numbers

Posted on 2008-10-17
4
530 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

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 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