By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,276 Members | 1,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,276 IT Pros & Developers. It's quick & easy.

Uninstall Assembly from GAC

P: n/a
I wrote a small assembly to test the process of placing it into the Global
Assembly Cache but now I cannot remove it. When I hi-light and click delete
I get the following:

Assembly 'Assembly Name' could not be uninstalled because it is required by
other applications.

I have signed on as the local administrator, I booted into safe mode and I
keep getting this message. Can you only put assemblies into the GAC? I
would assume if you had to update it you have to delete it first. I have
even tried the gacutil -u utility and it comes back with assembly not found.

Please help

Matt
Jul 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Did you install it there in the GAC with a Windows Installer setup? Like a
VS.NET Setup project?
--
Phil Wilson [MVP Windows Installer]
----
"Matt Frame" <md*****@sorvive.com> wrote in message
news:e0**************@TK2MSFTNGP10.phx.gbl...
I wrote a small assembly to test the process of placing it into the Global
Assembly Cache but now I cannot remove it. When I hi-light and click delete
I get the following:

Assembly 'Assembly Name' could not be uninstalled because it is required by
other applications.

I have signed on as the local administrator, I booted into safe mode and I
keep getting this message. Can you only put assemblies into the GAC? I
would assume if you had to update it you have to delete it first. I have
even tried the gacutil -u utility and it comes back with assembly not found.

Please help

Matt

Jul 19 '05 #2

P: n/a
Hi Matt,

Did it a classlibrary or a service?
I think the assembly was installed with one (or more) applications, which
have yet to be uninstalled, and will rely on that assembly being in the GAC
the next time they are used. If you are sure that you want to get rid of
this assembly, then you can use the gacutil /uf command to do it. Note
however, that even gacutil /uf will not uninstall
assemblies put in the GAC by Windows Installer.
You may try to use gacutil /lr to see if there is any reference?
You may also try to use gacutil /uf to uninstall the assembly by force.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: "Matt Frame" <md*****@sorvive.com>
Subject: Uninstall Assembly from GAC
Date: Thu, 4 Sep 2003 15:44:30 -0400
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e0**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107339
X-Tomcat-NG: microsoft.public.dotnet.general

I wrote a small assembly to test the process of placing it into the Global
Assembly Cache but now I cannot remove it. When I hi-light and click deleteI get the following:

Assembly 'Assembly Name' could not be uninstalled because it is required by
other applications.

I have signed on as the local administrator, I booted into safe mode and I
keep getting this message. Can you only put assemblies into the GAC? I
would assume if you had to update it you have to delete it first. I have
even tried the gacutil -u utility and it comes back with assembly not found.
Please help

Matt


Jul 19 '05 #3

P: n/a
This is just a small 5 line class that I was testing with. It is not
installed as part of anything. I tried the gacutil /uf and that didn't work
either. It gives me the same message as the other methods.

I created a second small utility and it does the same thing. I can't
uninstall anything I add and it thinks they have been installed by Windows
Installer and that is not true.
"Peter Huang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:eA**************@cpmsftngxa06.phx.gbl...
Hi Matt,

Did it a classlibrary or a service?
I think the assembly was installed with one (or more) applications, which
have yet to be uninstalled, and will rely on that assembly being in the GAC the next time they are used. If you are sure that you want to get rid of this assembly, then you can use the gacutil /uf command to do it. Note
however, that even gacutil /uf will not uninstall
assemblies put in the GAC by Windows Installer.
You may try to use gacutil /lr to see if there is any reference?
You may also try to use gacutil /uf to uninstall the assembly by force.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: "Matt Frame" <md*****@sorvive.com>
Subject: Uninstall Assembly from GAC
Date: Thu, 4 Sep 2003 15:44:30 -0400
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e0**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107339
X-Tomcat-NG: microsoft.public.dotnet.general

I wrote a small assembly to test the process of placing it into the GlobalAssembly Cache but now I cannot remove it. When I hi-light and click

delete
I get the following:

Assembly 'Assembly Name' could not be uninstalled because it is required byother applications.

I have signed on as the local administrator, I booted into safe mode and Ikeep getting this message. Can you only put assemblies into the GAC? I
would assume if you had to update it you have to delete it first. I have
even tried the gacutil -u utility and it comes back with assembly not

found.

Please help

Matt

Jul 19 '05 #4

P: n/a
Hi Matt,

I have perform many tests and do many searches, but I can not reproduce the
problem and find no known issue.
Anyway, you may try to delete the file in GAC directory directly by
following the steps below.
1. Run cmd in run dialog.
2. cd
%systemroot%\assembly\gac\ClassLibrary1\1.0.1322.2 1592__22df95e3b227e638
(My test dll is ClassLibrary1.dll)
3. del ClassLibrary1.dll
4. del __AssemblyInfo__.ini
5. cd..
6. rd 1.0.1322.21592__22df95e3b227e638
7. cd..
8. rd ClassLibrary1

You may perform the steps above to see if the ClassLibray1 has been removed
from the GAC.


Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: "Matt Frame" <md*****@sorvive.com>
References: <e0**************@TK2MSFTNGP10.phx.gbl> <eA**************@cpmsftngxa06.phx.gbl>Subject: Re: Uninstall Assembly from GAC
Date: Fri, 5 Sep 2003 09:35:36 -0400
Lines: 73
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ue**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107422
X-Tomcat-NG: microsoft.public.dotnet.general

This is just a small 5 line class that I was testing with. It is not
installed as part of anything. I tried the gacutil /uf and that didn't workeither. It gives me the same message as the other methods.

I created a second small utility and it does the same thing. I can't
uninstall anything I add and it thinks they have been installed by Windows
Installer and that is not true.
"Peter Huang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:eA**************@cpmsftngxa06.phx.gbl...
Hi Matt,

Did it a classlibrary or a service?
I think the assembly was installed with one (or more) applications, which
have yet to be uninstalled, and will rely on that assembly being in the

GAC
the next time they are used. If you are sure that you want to get rid

of
this assembly, then you can use the gacutil /uf command to do it. Note
however, that even gacutil /uf will not uninstall
assemblies put in the GAC by Windows Installer.
You may try to use gacutil /lr to see if there is any reference?
You may also try to use gacutil /uf to uninstall the assembly by force.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
>From: "Matt Frame" <md*****@sorvive.com>
>Subject: Uninstall Assembly from GAC
>Date: Thu, 4 Sep 2003 15:44:30 -0400
>Lines: 17
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <e0**************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.general
>NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107339
>X-Tomcat-NG: microsoft.public.dotnet.general
>
>I wrote a small assembly to test the process of placing it into the

Global >Assembly Cache but now I cannot remove it. When I hi-light and click

delete
>I get the following:
>
>Assembly 'Assembly Name' could not be uninstalled because it is requiredby >other applications.
>
>I have signed on as the local administrator, I booted into safe mode andI >keep getting this message. Can you only put assemblies into the GAC? I
>would assume if you had to update it you have to delete it first. I have >even tried the gacutil -u utility and it comes back with assembly not

found.
>
>Please help
>
>Matt
>
>
>



Jul 21 '05 #5

P: n/a
Peter,

Thanks for that solution. I was able to remove it with your recommended
approach. I really appreciate it as I had no idea what to do next. I still
don't understand how I can manually add something to the GAC and not be able
to remove it.

Thanks again,

Matt
"Peter Huang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Vf*************@cpmsftngxa06.phx.gbl...
Hi Matt,

I have perform many tests and do many searches, but I can not reproduce the problem and find no known issue.
Anyway, you may try to delete the file in GAC directory directly by
following the steps below.
1. Run cmd in run dialog.
2. cd
%systemroot%\assembly\gac\ClassLibrary1\1.0.1322.2 1592__22df95e3b227e638
(My test dll is ClassLibrary1.dll)
3. del ClassLibrary1.dll
4. del __AssemblyInfo__.ini
5. cd..
6. rd 1.0.1322.21592__22df95e3b227e638
7. cd..
8. rd ClassLibrary1

You may perform the steps above to see if the ClassLibray1 has been removed from the GAC.


Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: "Matt Frame" <md*****@sorvive.com>
References: <e0**************@TK2MSFTNGP10.phx.gbl>

<eA**************@cpmsftngxa06.phx.gbl>
Subject: Re: Uninstall Assembly from GAC
Date: Fri, 5 Sep 2003 09:35:36 -0400
Lines: 73
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ue**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107422
X-Tomcat-NG: microsoft.public.dotnet.general

This is just a small 5 line class that I was testing with. It is not
installed as part of anything. I tried the gacutil /uf and that didn't

work
either. It gives me the same message as the other methods.

I created a second small utility and it does the same thing. I can't
uninstall anything I add and it thinks they have been installed by Windows
Installer and that is not true.
"Peter Huang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:eA**************@cpmsftngxa06.phx.gbl...
Hi Matt,

Did it a classlibrary or a service?
I think the assembly was installed with one (or more) applications, which have yet to be uninstalled, and will rely on that assembly being in the

GAC
the next time they are used. If you are sure that you want to get rid
of
this assembly, then you can use the gacutil /uf command to do it. Note
however, that even gacutil /uf will not uninstall
assemblies put in the GAC by Windows Installer.
You may try to use gacutil /lr to see if there is any reference?
You may also try to use gacutil /uf to uninstall the assembly by
force.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no

rights. --------------------
>From: "Matt Frame" <md*****@sorvive.com>
>Subject: Uninstall Assembly from GAC
>Date: Thu, 4 Sep 2003 15:44:30 -0400
>Lines: 17
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <e0**************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.general
>NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107339
>X-Tomcat-NG: microsoft.public.dotnet.general
>
>I wrote a small assembly to test the process of placing it into the

Global
>Assembly Cache but now I cannot remove it. When I hi-light and click
delete
>I get the following:
>
>Assembly 'Assembly Name' could not be uninstalled because it is requiredby
>other applications.
>
>I have signed on as the local administrator, I booted into safe mode
and
I
>keep getting this message. Can you only put assemblies into the GAC?

I >would assume if you had to update it you have to delete it first. I

have >even tried the gacutil -u utility and it comes back with assembly not
found.
>
>Please help
>
>Matt
>
>
>


Jul 21 '05 #6

P: n/a
Hi Matt,

I think the ClassLibrary that was added to the GAC is also a file in the
disk. So if you can delete the file in the disk, you can also remove it
from the GAC.[a directory]
If you don't want the ClassLibrary removed, you may need to forbide the the
ClassLibrary file from being deleted.

Did I answer your question?
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
From: "Matt Frame" <md*****@sorvive.com>
References: <e0**************@TK2MSFTNGP10.phx.gbl> <eA**************@cpmsftngxa06.phx.gbl>
<ue**************@TK2MSFTNGP11.phx.gbl>
<Vf*************@cpmsftngxa06.phx.gbl>Subject: Re: Uninstall Assembly from GAC
Date: Mon, 8 Sep 2003 09:53:29 -0400
Lines: 149
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#E**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107658
X-Tomcat-NG: microsoft.public.dotnet.general

Peter,

Thanks for that solution. I was able to remove it with your recommended
approach. I really appreciate it as I had no idea what to do next. I stilldon't understand how I can manually add something to the GAC and not be ableto remove it.

Thanks again,

Matt
"Peter Huang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Vf*************@cpmsftngxa06.phx.gbl...
Hi Matt,

I have perform many tests and do many searches, but I can not reproduce

the
problem and find no known issue.
Anyway, you may try to delete the file in GAC directory directly by
following the steps below.
1. Run cmd in run dialog.
2. cd
%systemroot%\assembly\gac\ClassLibrary1\1.0.1322.2 1592__22df95e3b227e638
(My test dll is ClassLibrary1.dll)
3. del ClassLibrary1.dll
4. del __AssemblyInfo__.ini
5. cd..
6. rd 1.0.1322.21592__22df95e3b227e638
7. cd..
8. rd ClassLibrary1

You may perform the steps above to see if the ClassLibray1 has been

removed
from the GAC.


Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
>From: "Matt Frame" <md*****@sorvive.com>
>References: <e0**************@TK2MSFTNGP10.phx.gbl>

<eA**************@cpmsftngxa06.phx.gbl>
>Subject: Re: Uninstall Assembly from GAC
>Date: Fri, 5 Sep 2003 09:35:36 -0400
>Lines: 73
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <ue**************@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.general
>NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107422
>X-Tomcat-NG: microsoft.public.dotnet.general
>
>This is just a small 5 line class that I was testing with. It is not
>installed as part of anything. I tried the gacutil /uf and that didn't

work
>either. It gives me the same message as the other methods.
>
>I created a second small utility and it does the same thing. I can't
>uninstall anything I add and it thinks they have been installed by

Windows >Installer and that is not true.
>
>
>"Peter Huang [MSFT]" <v-******@online.microsoft.com> wrote in message
>news:eA**************@cpmsftngxa06.phx.gbl...
>> Hi Matt,
>>
>> Did it a classlibrary or a service?
>> I think the assembly was installed with one (or more) applications,which >> have yet to be uninstalled, and will rely on that assembly being in the >GAC
>> the next time they are used. If you are sure that you want to getrid >of
>> this assembly, then you can use the gacutil /uf command to do it. Note >> however, that even gacutil /uf will not uninstall
>> assemblies put in the GAC by Windows Installer.
>> You may try to use gacutil /lr to see if there is any reference?
>> You may also try to use gacutil /uf to uninstall the assembly byforce. >>
>>
>> Regards,
>> Peter Huang
>> Microsoft Online Partner Support
>> Get Secure! www.microsoft.com/security
>> This posting is provided "as is" with no warranties and confers no

rights.
>> --------------------
>> >From: "Matt Frame" <md*****@sorvive.com>
>> >Subject: Uninstall Assembly from GAC
>> >Date: Thu, 4 Sep 2003 15:44:30 -0400
>> >Lines: 17
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <e0**************@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.general
>> >NNTP-Posting-Host: c-24-125-30-151.va.client2.attbi.com 24.125.30.151
>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107339
>> >X-Tomcat-NG: microsoft.public.dotnet.general
>> >
>> >I wrote a small assembly to test the process of placing it into the
>Global
>> >Assembly Cache but now I cannot remove it. When I hi-light and click
>> delete
>> >I get the following:
>> >
>> >Assembly 'Assembly Name' could not be uninstalled because it isrequired >by
>> >other applications.
>> >
>> >I have signed on as the local administrator, I booted into safe modeand >I
>> >keep getting this message. Can you only put assemblies into the GAC?I >> >would assume if you had to update it you have to delete it first. I

have
>> >even tried the gacutil -u utility and it comes back with assembly not
>> found.
>> >
>> >Please help
>> >
>> >Matt
>> >
>> >
>> >
>>
>
>
>



Jul 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.