Re: Can't delete an assembly from the GAC!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Cant delete an assembly from the GAC!
    ... How does one register that a certain assembly depends on another? ... > applications have registered their references to this GACed assembly using ... it may also be that the DLL file is simply locked ...
    (microsoft.public.dotnet.framework)
  • Re: Excel References
    ... closing the References dialog, then reopen the References dialog and recheck ... Click OK and the VBE will register the DLL and add ... (MISSING is present) ...
    (microsoft.public.excel.programming)
  • RE: V2: Sub-Areas Display
    ... u need to register the web part first. ... DRAG the dll file, say TTSiteUsage.dll to the folder “c:\windows\assembly”, pls note the action is DRAG, not copy! ... Right click the dll file in the folder of “c:\windows\assembly” and from the property get the public key and copy it; ... >These Web Parts enable document library tree views, ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Excel References
    ... registers the DLL properly on the user's machine then there shouldn't be any ... I re-establish the References, XL runs fine. ... "Joe" wrote in message ... Click OK and the VBE will register the DLL ...
    (microsoft.public.excel.programming)
  • Re: Explorer problems
    ... I was wondering if you know which dll file contains the ... information about the explorer bar layout ... But Office doesn't use real menus (they ... >>How do you register a .dll or register one ...
    (microsoft.public.windowsxp.perform_maintain)