PC Review


Reply
Thread Tools Rate Thread

Can't delete an assembly from the GAC!

 
 
=?Utf-8?B?SnVhbiBEZW50?=
Guest
Posts: n/a
 
      2nd Aug 2005
Hi,

I need to delete an assembly from the GAC but it tells me

"Can not acces file 'IDODBLibNET' because it is being used by another process"

Now, I have deleted the assemblies that I know depend on this one. I can't
remember any other.

Is there a list of dependencies somewhere so that I can see which assembly
is depending on the one I need to delete?

--
Thanks in advance,

Juan Dent, M.Sc.
 
Reply With Quote
 
 
 
 
Derrick
Guest
Posts: n/a
 
      2nd Aug 2005
How are you deleting it? I've had issues when doing it from Windows
Explorer, so I only do it from the command line now.

Derrick

"Juan Dent" <(E-Mail Removed)> wrote in message
news:AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
> Hi,
>
> I need to delete an assembly from the GAC but it tells me
>
> "Can not acces file 'IDODBLibNET' because it is being used by another
> process"
>
> Now, I have deleted the assemblies that I know depend on this one. I can't
> remember any other.
>
> Is there a list of dependencies somewhere so that I can see which assembly
> is depending on the one I need to delete?
>
> --
> Thanks in advance,
>
> Juan Dent, M.Sc.



 
Reply With Quote
 
=?Utf-8?B?SnVhbiBEZW50?=
Guest
Posts: n/a
 
      2nd Aug 2005
Yes I am using the Windows Explorer. However I don't think its going to
change anything to do it in command line since I also tried deleting it
through the .NET Configuration 1.1.

Anyway, even if it could be done by cmd line, the other part of my question
still holds: how can we find out which other applications depend on one given
assembly?

--
Thanks in advance,

Juan Dent, M.Sc.


"Derrick" wrote:

> How are you deleting it? I've had issues when doing it from Windows
> Explorer, so I only do it from the command line now.
>
> Derrick
>
> "Juan Dent" <(E-Mail Removed)> wrote in message
> news:AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
> > Hi,
> >
> > I need to delete an assembly from the GAC but it tells me
> >
> > "Can not acces file 'IDODBLibNET' because it is being used by another
> > process"
> >
> > Now, I have deleted the assemblies that I know depend on this one. I can't
> > remember any other.
> >
> > Is there a list of dependencies somewhere so that I can see which assembly
> > is depending on the one I need to delete?
> >
> > --
> > Thanks in advance,
> >
> > Juan Dent, M.Sc.

>
>
>

 
Reply With Quote
 
Nicolas Guinet
Guest
Posts: n/a
 
      2nd Aug 2005
Hi,

Did you try to examin the manifest of your assembly with ildasm.exe ?
All referenced assemblies are indicated in lines

".assembly extern ....REFERENCE ASSEMBLIES HERE...."

Nicolas Guinet


"Juan Dent" <(E-Mail Removed)> a écrit dans le message de news:
AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
> Hi,
>
> I need to delete an assembly from the GAC but it tells me
>
> "Can not acces file 'IDODBLibNET' because it is being used by another
> process"
>
> Now, I have deleted the assemblies that I know depend on this one. I can't
> remember any other.
>
> Is there a list of dependencies somewhere so that I can see which assembly
> is depending on the one I need to delete?
>
> --
> Thanks in advance,
>
> Juan Dent, M.Sc.



 
Reply With Quote
 
=?Utf-8?B?SnVhbiBEZW50?=
Guest
Posts: n/a
 
      2nd Aug 2005
Looking at the manifest of the assembly I am not able to delete from the GAC
will not help. It will tell me its dependencies but not who else depends on
it.

No, there must be someway to find out when an assembly states that another
one uses it, to find out who it is referring to..

--
Thanks in advance,

Juan Dent, M.Sc.


"Nicolas Guinet" wrote:

> Hi,
>
> Did you try to examin the manifest of your assembly with ildasm.exe ?
> All referenced assemblies are indicated in lines
>
> ".assembly extern ....REFERENCE ASSEMBLIES HERE...."
>
> Nicolas Guinet
>
>
> "Juan Dent" <(E-Mail Removed)> a écrit dans le message de news:
> AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
> > Hi,
> >
> > I need to delete an assembly from the GAC but it tells me
> >
> > "Can not acces file 'IDODBLibNET' because it is being used by another
> > process"
> >
> > Now, I have deleted the assemblies that I know depend on this one. I can't
> > remember any other.
> >
> > Is there a list of dependencies somewhere so that I can see which assembly
> > is depending on the one I need to delete?
> >
> > --
> > Thanks in advance,
> >
> > Juan Dent, M.Sc.

>
>
>

 
Reply With Quote
 
Nicole Calinoiu
Guest
Posts: n/a
 
      2nd Aug 2005
To list references:
gacutil /lr <assembly name>

To force removal from the GAC despite the references:
gacutil /uf <assembly name>

For more informtion on gacutil, see
http://msdn.microsoft.com/library/en...Gacutilexe.asp.



"Juan Dent" <(E-Mail Removed)> wrote in message
news:7664F0E4-42AF-434C-B55B-(E-Mail Removed)...
> Looking at the manifest of the assembly I am not able to delete from the
> GAC
> will not help. It will tell me its dependencies but not who else depends
> on
> it.
>
> No, there must be someway to find out when an assembly states that another
> one uses it, to find out who it is referring to..
>
> --
> Thanks in advance,
>
> Juan Dent, M.Sc.
>
>
> "Nicolas Guinet" wrote:
>
>> Hi,
>>
>> Did you try to examin the manifest of your assembly with ildasm.exe ?
>> All referenced assemblies are indicated in lines
>>
>> ".assembly extern ....REFERENCE ASSEMBLIES HERE...."
>>
>> Nicolas Guinet
>>
>>
>> "Juan Dent" <(E-Mail Removed)> a écrit dans le message de news:
>> AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
>> > Hi,
>> >
>> > I need to delete an assembly from the GAC but it tells me
>> >
>> > "Can not acces file 'IDODBLibNET' because it is being used by another
>> > process"
>> >
>> > Now, I have deleted the assemblies that I know depend on this one. I
>> > can't
>> > remember any other.
>> >
>> > Is there a list of dependencies somewhere so that I can see which
>> > assembly
>> > is depending on the one I need to delete?
>> >
>> > --
>> > Thanks in advance,
>> >
>> > Juan Dent, M.Sc.

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?SnVhbiBEZW50?=
Guest
Posts: n/a
 
      3rd Aug 2005
"To list references:
gacutil /lr <assembly name>"

Does nothing but display the complete assemly name (public token, etc).

There must be a tool for what I want.

--
Thanks in advance,

Juan Dent, M.Sc.


"Nicole Calinoiu" wrote:

> To list references:
> gacutil /lr <assembly name>
>
> To force removal from the GAC despite the references:
> gacutil /uf <assembly name>
>
> For more informtion on gacutil, see
> http://msdn.microsoft.com/library/en...Gacutilexe.asp.
>
>
>
> "Juan Dent" <(E-Mail Removed)> wrote in message
> news:7664F0E4-42AF-434C-B55B-(E-Mail Removed)...
> > Looking at the manifest of the assembly I am not able to delete from the
> > GAC
> > will not help. It will tell me its dependencies but not who else depends
> > on
> > it.
> >
> > No, there must be someway to find out when an assembly states that another
> > one uses it, to find out who it is referring to..
> >
> > --
> > Thanks in advance,
> >
> > Juan Dent, M.Sc.
> >
> >
> > "Nicolas Guinet" wrote:
> >
> >> Hi,
> >>
> >> Did you try to examin the manifest of your assembly with ildasm.exe ?
> >> All referenced assemblies are indicated in lines
> >>
> >> ".assembly extern ....REFERENCE ASSEMBLIES HERE...."
> >>
> >> Nicolas Guinet
> >>
> >>
> >> "Juan Dent" <(E-Mail Removed)> a écrit dans le message de news:
> >> AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
> >> > Hi,
> >> >
> >> > I need to delete an assembly from the GAC but it tells me
> >> >
> >> > "Can not acces file 'IDODBLibNET' because it is being used by another
> >> > process"
> >> >
> >> > Now, I have deleted the assemblies that I know depend on this one. I
> >> > can't
> >> > remember any other.
> >> >
> >> > Is there a list of dependencies somewhere so that I can see which
> >> > assembly
> >> > is depending on the one I need to delete?
> >> >
> >> > --
> >> > Thanks in advance,
> >> >
> >> > Juan Dent, M.Sc.
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Peter Huang [MSFT]
Guest
Posts: n/a
 
      3rd Aug 2005
Hi

Because the DLL itself will not record who will load it, it may be used by
many processes.
I think you may try to use the tool below to find what DLL certain
processes have.
ListDlls
http://www.sysinternals.com/Utilities/ListDlls.html
Process Explorer(GUI)
http://www.sysinternals.com/Utilitie...sExplorer.html

e.g. Use Ctrl+E and input Dll name.

Best 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.

 
Reply With Quote
 
Nicole Calinoiu
Guest
Posts: n/a
 
      3rd Aug 2005
The fact that you're seeing only the assembly name means that no
applications have registered their references to this GACed assembly using
the tools provided for this purpose. Given this, you will need to track
down the referencing assembly on your own. If the assembly is actually
running, the SysInternals ProcessExplorer tool that Peter mentioned should
help with this. However, it may also be that the DLL file is simply locked
as an open file rather than as executing code, so you might want to try
FileMon (http://www.sysinternals.com/Utilities/Filemon.html) if you can't
find a process that's running your assembly.



"Juan Dent" <(E-Mail Removed)> wrote in message
news:343E1861-509D-4D04-807E-(E-Mail Removed)...
> "To list references:
> gacutil /lr <assembly name>"
>
> Does nothing but display the complete assemly name (public token, etc).
>
> There must be a tool for what I want.
>
> --
> Thanks in advance,
>
> Juan Dent, M.Sc.
>
>
> "Nicole Calinoiu" wrote:
>
>> To list references:
>> gacutil /lr <assembly name>
>>
>> To force removal from the GAC despite the references:
>> gacutil /uf <assembly name>
>>
>> For more informtion on gacutil, see
>> http://msdn.microsoft.com/library/en...Gacutilexe.asp.
>>
>>
>>
>> "Juan Dent" <(E-Mail Removed)> wrote in message
>> news:7664F0E4-42AF-434C-B55B-(E-Mail Removed)...
>> > Looking at the manifest of the assembly I am not able to delete from
>> > the
>> > GAC
>> > will not help. It will tell me its dependencies but not who else
>> > depends
>> > on
>> > it.
>> >
>> > No, there must be someway to find out when an assembly states that
>> > another
>> > one uses it, to find out who it is referring to..
>> >
>> > --
>> > Thanks in advance,
>> >
>> > Juan Dent, M.Sc.
>> >
>> >
>> > "Nicolas Guinet" wrote:
>> >
>> >> Hi,
>> >>
>> >> Did you try to examin the manifest of your assembly with ildasm.exe ?
>> >> All referenced assemblies are indicated in lines
>> >>
>> >> ".assembly extern ....REFERENCE ASSEMBLIES HERE...."
>> >>
>> >> Nicolas Guinet
>> >>
>> >>
>> >> "Juan Dent" <(E-Mail Removed)> a écrit dans le message de news:
>> >> AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
>> >> > Hi,
>> >> >
>> >> > I need to delete an assembly from the GAC but it tells me
>> >> >
>> >> > "Can not acces file 'IDODBLibNET' because it is being used by
>> >> > another
>> >> > process"
>> >> >
>> >> > Now, I have deleted the assemblies that I know depend on this one. I
>> >> > can't
>> >> > remember any other.
>> >> >
>> >> > Is there a list of dependencies somewhere so that I can see which
>> >> > assembly
>> >> > is depending on the one I need to delete?
>> >> >
>> >> > --
>> >> > Thanks in advance,
>> >> >
>> >> > Juan Dent, M.Sc.
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?SnVhbiBEZW50?=
Guest
Posts: n/a
 
      3rd Aug 2005
Hi and thanks. Just one question:

How does one register that a certain assembly depends on another? As in your
comment:

> applications have registered their references to this GACed assembly using
> the tools provided for this purpose. Given this, you will need to track


--
Thanks in advance,

Juan Dent, M.Sc.


"Nicole Calinoiu" wrote:

> The fact that you're seeing only the assembly name means that no
> applications have registered their references to this GACed assembly using
> the tools provided for this purpose. Given this, you will need to track
> down the referencing assembly on your own. If the assembly is actually
> running, the SysInternals ProcessExplorer tool that Peter mentioned should
> help with this. However, it may also be that the DLL file is simply locked
> as an open file rather than as executing code, so you might want to try
> FileMon (http://www.sysinternals.com/Utilities/Filemon.html) if you can't
> find a process that's running your assembly.
>
>
>
> "Juan Dent" <(E-Mail Removed)> wrote in message
> news:343E1861-509D-4D04-807E-(E-Mail Removed)...
> > "To list references:
> > gacutil /lr <assembly name>"
> >
> > Does nothing but display the complete assemly name (public token, etc).
> >
> > There must be a tool for what I want.
> >
> > --
> > Thanks in advance,
> >
> > Juan Dent, M.Sc.
> >
> >
> > "Nicole Calinoiu" wrote:
> >
> >> To list references:
> >> gacutil /lr <assembly name>
> >>
> >> To force removal from the GAC despite the references:
> >> gacutil /uf <assembly name>
> >>
> >> For more informtion on gacutil, see
> >> http://msdn.microsoft.com/library/en...Gacutilexe.asp.
> >>
> >>
> >>
> >> "Juan Dent" <(E-Mail Removed)> wrote in message
> >> news:7664F0E4-42AF-434C-B55B-(E-Mail Removed)...
> >> > Looking at the manifest of the assembly I am not able to delete from
> >> > the
> >> > GAC
> >> > will not help. It will tell me its dependencies but not who else
> >> > depends
> >> > on
> >> > it.
> >> >
> >> > No, there must be someway to find out when an assembly states that
> >> > another
> >> > one uses it, to find out who it is referring to..
> >> >
> >> > --
> >> > Thanks in advance,
> >> >
> >> > Juan Dent, M.Sc.
> >> >
> >> >
> >> > "Nicolas Guinet" wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> Did you try to examin the manifest of your assembly with ildasm.exe ?
> >> >> All referenced assemblies are indicated in lines
> >> >>
> >> >> ".assembly extern ....REFERENCE ASSEMBLIES HERE...."
> >> >>
> >> >> Nicolas Guinet
> >> >>
> >> >>
> >> >> "Juan Dent" <(E-Mail Removed)> a écrit dans le message de news:
> >> >> AE4A7EFA-62B9-46D9-BB7C-(E-Mail Removed)...
> >> >> > Hi,
> >> >> >
> >> >> > I need to delete an assembly from the GAC but it tells me
> >> >> >
> >> >> > "Can not acces file 'IDODBLibNET' because it is being used by
> >> >> > another
> >> >> > process"
> >> >> >
> >> >> > Now, I have deleted the assemblies that I know depend on this one. I
> >> >> > can't
> >> >> > remember any other.
> >> >> >
> >> >> > Is there a list of dependencies somewhere so that I can see which
> >> >> > assembly
> >> >> > is depending on the one I need to delete?
> >> >> >
> >> >> > --
> >> >> > Thanks in advance,
> >> >> >
> >> >> > Juan Dent, M.Sc.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why can not delete assembly from GAC? 30906024 Microsoft Dot NET Framework 4 29th Apr 2011 04:57 AM
Can't delete assembly from GAC in Windows 2003 with Framework 2.0 Diego F. Microsoft Dot NET Framework 4 24th May 2005 06:34 AM
How to UnRegAsm and Delete an Assembly in the same program ? =?Utf-8?B?Um9sYW5kbw==?= Microsoft Dot NET Framework 0 3rd Dec 2004 10:11 PM
Cannot Delete An Assembly From The GAC Ram Microsoft Dot NET Framework 1 13th Jun 2004 07:20 PM
Why can not delete assembly from GAC? 30906024 Microsoft C# .NET 2 17th Jul 2003 02:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 AM.