Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

Copying GAC assemblies to local folder and maintain version numbers

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
valencehealth
Asked:
valencehealth
  • 3
1 Solution
 
TechTiger007Commented:
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
 
valencehealthAuthor Commented:
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
 
TechTiger007Commented:
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
 
TechTiger007Commented:
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now