Re: Can't delete an assembly from the GAC!
- From: "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com>
- Date: Fri, 5 Aug 2005 06:46:45 -0400
"gacutil /i /r" is the basic approach. VStudio setup projects also allow
you to specify registration like this via the properties of an assembly that
is to be installed in the GAC. (I'm guessing that a call out to gacutil
might be used in this case as well, but I've never cared enough to check
whether that's true or not...)
"Juan Dent" <Juan_Dent@xxxxxxxxxxxxx> wrote in message
news:B995D203-2A2E-40DC-8A12-1252855C363E@xxxxxxxxxxxxxxxx
> 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" <Juan_Dent@xxxxxxxxxxxxx> wrote in message
>> news:343E1861-509D-4D04-807E-2B1344BCD9C4@xxxxxxxxxxxxxxxx
>> > "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-us/cptools/html/cpgrfGlobalAssemblyCacheUtilityGacutilexe.asp.
>> >>
>> >>
>> >>
>> >> "Juan Dent" <Juan_Dent@xxxxxxxxxxxxx> wrote in message
>> >> news:7664F0E4-42AF-434C-B55B-1A980B2E965A@xxxxxxxxxxxxxxxx
>> >> > 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" <Juan_Dent@xxxxxxxxxxxxx> a écrit dans le message de
>> >> >> news:
>> >> >> AE4A7EFA-62B9-46D9-BB7C-BB4003C44B78@xxxxxxxxxxxxxxxx
>> >> >> > 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.
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>
.
- References:
- Can't delete an assembly from the GAC!
- From: Juan Dent
- Re: Can't delete an assembly from the GAC!
- From: Nicolas Guinet
- Re: Can't delete an assembly from the GAC!
- From: Juan Dent
- Re: Can't delete an assembly from the GAC!
- From: Nicole Calinoiu
- Re: Can't delete an assembly from the GAC!
- From: Juan Dent
- Re: Can't delete an assembly from the GAC!
- From: Nicole Calinoiu
- Re: Can't delete an assembly from the GAC!
- From: Juan Dent
- Can't delete an assembly from the GAC!
- Prev by Date: Catching exceptions from a FileSystemWatcher event handler
- Next by Date: Block a receive call
- Previous by thread: Re: Can't delete an assembly from the GAC!
- Next by thread: Re: Can't delete an assembly from the GAC!
- Index(es):
Relevant Pages
|