Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Can't delete assembly from GAC in Windows 2003 with Framework 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Diego F. - 23 May 2005 09:55 GMT
I can't delete an assembly from GAC. I'm trying to delete from Framework 2.0
configuration tool, but I'm getting an error: Error deleting assembly.

How can I remove it?

I get also an error when trying to change the assembly trust with the
wizard: Unable to load assembly.

Is this a framework 2.0 bug?

--
Regards,

Diego F.
sam_in - 23 May 2005 11:36 GMT
Have you tried first unregistering the assembly with regasm tool?

Regards,
Sam

> I can't delete an assembly from GAC. I'm trying to delete from Framework 2.0
> configuration tool, but I'm getting an error: Error deleting assembly.
[quoted text clipped - 10 lines]
>
> Diego F.
Diego F. - 23 May 2005 12:43 GMT
No. How do I use that tool? I tried using:
regasm "my library.dll" /unregister, but it doesn't find the libray.

--
Regards,

Diego F.

> Have you tried first unregistering the assembly with regasm tool?
>
[quoted text clipped - 16 lines]
>>
>> Diego F.
Lloyd Dupont - 23 May 2005 13:35 GMT
I think he meant the "unregistering tool whatever it is"...
refering you to:
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin\StartTools.htm

And then you'll undestand he was speaking of: gacutil.exe

> No. How do I use that tool? I tried using:
> regasm "my library.dll" /unregister, but it doesn't find the libray.
[quoted text clipped - 24 lines]
>>>
>>> Diego F.
sam_in - 24 May 2005 06:34 GMT
Usage: Gacutil <command> [ <options> ]
Commands:

 /u <assembly_name> [ /r <...> ]
   Uninstalls an assembly. <assembly_name> is the name of the assembly
   (partial or fully qualified) to remove from the Global Assembly Cache.
   If a partial name is specified all matching assemblies will be
uninstalled.
   Example:
     /u myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab
     /r FILEPATH c:\projects\myapp.exe "My App"

 /uf <assembly_name>
   Forces uninstall of an assembly by removing all traced references.
   <assembly_name> is the full name of the assembly to remove. Assembly will
   be removed unless referenced by Windows Installer.
   ! Warning: use the /uf command with care as applications may fail to run !
   Example: /uf
myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23a
b

 /ul <assembly_list_file> [ /r <...> ]
   Uninstalls one or more assemblies from the global assembly cache.
   <assembly_list_file> is the path to a text file that contains a list of
   assembly names. Individual names in the text file must be
   separated by CR/LF.
   Example: /ul myAssemblyList.txt /r FILEPATH c:\projects\myapp.exe "My App"
     myAssemblyList.txt content:
     myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab
     myDll2,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab

 /ungen <assembly_name>
   Uninstalls a native image installed via the NGEN utility. <assembly_name>
   is the name of the assembly for which native images are to be uninstalled.
   The assembly itself will remain in the global assembly cache.
   Example: /ungen myDll

Hope this helps.
Regards
Sam

> I think he meant the "unregistering tool whatever it is"...
> refering you to:
[quoted text clipped - 31 lines]
> >>>
> >>> Diego F.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.