Solved

Copying GAC assemblies to local folder and maintain version numbers

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now