473,770 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why can not delete assembly from GAC?

I intalled an assembly into GAC by gacutil.exe.
But when i delete it from GAC by gacutil.exe, i got an error message such as
follow:

Assembly: Client.Common, Version=1.0.1.0 , Culture=neutral ,
PublicKeyToken= 01aef4fcc8ad777 2, Custom=null
Unable to uninstall: assembly is required by one or more applications
Pending references:
SCHEME: <WINDOWS_INSTAL LER> ID: <MSI> DESCRIPTION : <Windows
Installer>

So i want to delete it directely from assembly folder and .net framework
configuration tools, but failed.

So who can tell me why cann't delete assembly from GAC and how to delete it?
Nov 13 '05 #1
2 8234
I am guessing here:
Maybe some program you've installed, declared the assembly as "critical" or
something.
Thus, you'll need to uninstall that program before removing the assembly.

Miha

"30906024" <en********@msn .com> wrote in message
news:e5******** ******@TK2MSFTN GP10.phx.gbl...
I intalled an assembly into GAC by gacutil.exe.
But when i delete it from GAC by gacutil.exe, i got an error message such as follow:

Assembly: Client.Common, Version=1.0.1.0 , Culture=neutral ,
PublicKeyToken= 01aef4fcc8ad777 2, Custom=null
Unable to uninstall: assembly is required by one or more applications
Pending references:
SCHEME: <WINDOWS_INSTAL LER> ID: <MSI> DESCRIPTION : <Windows Installer>

So i want to delete it directely from assembly folder and .net framework
configuration tools, but failed.

So who can tell me why cann't delete assembly from GAC and how to delete it?

Nov 13 '05 #2
Well, I can't answer that (my uninstall went as it was supposed to),
but I do have something to add to it. Ever since I
installed-then-uninstalled my DLL from the GAC, whenever my dll loads,
it thinks its execution path is \winnt\system32 , even tho', I have it
running in another directory and the exe that loads it is also in that
other directory (c:\framework in this case). Anyone seen that and how
I can get around it? yes, there is only one copy of my DLL on my
system. It works fine when I move it to another system that didn't go
thru' the GAC cycle like on my machine. Very annoying.

"30906024" <en********@msn .com> wrote in message news:<e5******* *******@TK2MSFT NGP10.phx.gbl>. ..
I intalled an assembly into GAC by gacutil.exe.
But when i delete it from GAC by gacutil.exe, i got an error message such as
follow:

Assembly: Client.Common, Version=1.0.1.0 , Culture=neutral ,
PublicKeyToken= 01aef4fcc8ad777 2, Custom=null
Unable to uninstall: assembly is required by one or more applications
Pending references:
SCHEME: <WINDOWS_INSTAL LER> ID: <MSI> DESCRIPTION : <Windows
Installer>

So i want to delete it directely from assembly folder and .net framework
configuration tools, but failed.

So who can tell me why cann't delete assembly from GAC and how to delete it?

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
4609
by: A | last post by:
Hi, Consider this: char* ptr = "a string"; Is ptr a pointer to a dynamically created object for which i must use the delete operator to deallocate memory? I'm sure the "a string" part creates an array of characters, and returns a pointer to the first element.
0
1461
by: Chris Pratt | last post by:
I need to be able to remove some dlls from the GAC in order to return to using an older version of a component but I do not seem to be able to delete anything from the GAC in order to do so. Whenever I try to delete a dll using a GAC removal utility (with a parameter to force the uninstallation even if there are dependancies) I get a message saying that the assembly is required by one or more applications and that there are pending...
4
2968
by: GlobalBruce | last post by:
The global assembly cache on my development computer has duplicate native images of several System assemblies. For instance, the System assembly itself is present as two different native images, as well as a non-native version. The native images have different date/time stamps -- although they differ only by 3 days in Feb/2004. Many of the System.* packages have similar redundant native images. Why are there redundant native image...
7
12155
by: Charts | last post by:
I login as administrator of the machine. However running the following code get access denied exception for file inside the directory. The source code: DirectoryInfo target = new DirectoryInfo(TargetDirectory); target.Delete(true); I don’t have problem manually delete the whole directory. Please advice. Thanks,
2
4750
by: createdbyx | last post by:
I am trying to make a file sync utillity to sync files between my laptop and my desktop pc. On my desktop machine (xp pro sp2) I have shared my "Visual Studio Projects" folder using windows simple file sharing. And have specified the "Allow network users to change my files." option as well. Then on my laptop (xp home sp2) I have mapped a network drive using windows explorer. So on my laptop I have a Y: drive that points to the "Visual...
2
1691
by: Jan | last post by:
Hi all, I haven't done anything yet to study the securiy subject. I'm developing a product where I will have to learn a lot about security in ..NET applications but for now I have a "simple" isolated problem: In my main component I'm building some assemblies on-the-fly. I'm loading them in a seperate application domain and I have to be able to unload the files and delete them again. The main component can be used by different client...
0
874
by: mbowden | last post by:
I inadvertently set the language property to zu-ZA (Zulu) on a form that resides in a library assembly. I immediately set it back to (Default), but now whenever I build anything that uses this assembly a zu-ZA culture assembly is added. I have looked everywhere for any reference to zu-ZA in all of my source code and I cannot find what is telling VS2005 to build this assembly. I did find it listed in the vbproj.filelist.txt file, but cannot...
15
5026
by: LuB | last post by:
I am constantly creating and destroying a singular object used within a class I wrote. To save a bit of time, I am considering using 'placement new'. I guess we could also debate this decision - but for the sake of this post ... I'm searching for an answer that assumes said decision. If I allocate memory in the class declaration: char buffer;
3
2322
by: atrottier | last post by:
I'am new here so I'd like to say hello and this seems to be a great site it has already helped me a few times. I just got an assignment to correct and modify a simple access application. First some background info:. I added a delete button on a subform to remove an item from that forms list. The subfrom is populated from a table that has a primary key composed of two number fields. I have assigned varaibles to the column values for the selected...
0
10254
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8929
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.