you will need to use GACUTIL command line as follows
gacutil /if assembly.dll
gacutil /cdl
the second one will delete the download cache & hopefully force your application to check for the updated assembly without restarting the application pool.
When i run the following command, which is in a .bat file
gacutil" /i somefile.dll
it appears to run fine, however my application that uses this dll doesnt work.
to get my application to work, i need to run
gacutil" /u somefile.dll then recycle the app pool then run
gacutil" /i somefil.dll then recycle the app pool.
Is there anyway using a batch file or if i made a .net app to do the registering of the files, that i would then be able to verify the dll was registered successfully in the GAC?
Appreciate any insight.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
to register dll u need to follow this steps:
1. use sn tool to generate cryptographic key pair
i.e sn -k c:\mydll.snk
2. once the snk file was generated go back to your dll project in visual studio.
goto Properties ->Signing, check "sign the assembly" option and browse to the snk file.
3. rebuild the dll project.
4. use the following function to register/unregister and validate your dll:
static void Register(string dllFullPath, string gacutilPath, bool register)
{
string dllName = Path.GetFileNameWithoutExt
if (register)
{
if (Directory.Exists(string.F
{
Console.WriteLine("{0} already exists in GAC, skip ...", dllName);
return;
}
Process p = Process.Start(gacutilPath,
p.WaitForExit();
if (p.ExitCode == 0)
{
Console.WriteLine("{0} registered.", dllName);
}
}
else
{
if (!Directory.Exists(string.
{
Console.WriteLine("{0} is not registered in GAC, skip ...", dllName);
return;
}
Process p = Process.Start(gacutilPath,
p.WaitForExit();
if (p.ExitCode == 0)
{
Console.WriteLine("{0} unregistered.", dllName);
}
}
hope it helped u :)
Business Accounts
Answer for Membership
by: shahprabalPosted on 2009-10-23 at 13:19:59ID: 25648180
checkout : e.com/Prog ramming/La nguages/ C_ Sharp/Q_24 550741.htm l?sfQueryT ermInfo=1+ dll+gac+in stal e.com/Prog ramming/La nguages/.N ET/ Q_21389 533.html?s fQueryTerm Info=1+dll +gac+insta l
http://www.experts-exchang
and
http://www.experts-exchang