?
Solved

Copying GAC assemblies to local folder and maintain version numbers

Posted on 2008-10-17
4
Medium Priority
?
535 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
[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
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 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 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