Select to view content in your preferred language

Cannot unregister a custom extension

515
2
10-17-2010 05:12 AM
ErnieSalazar
Regular Contributor
Hi all.  I am beginning to work on a custom extension in .NET now that we are upgraded to ArcGIS 10 and VBA will be going away.

I created a dll fine and registered it using the ERSI installed right-click option.  So far so good.  Now I am trying to unregister it.  I right-clicked and use the installed ESRI option and I get an error "Unregistered failed.  Requested registry access is not allowed."  I tried going to the command prompt use ESRIregasm directly and get the same error.  I tried running everything as an Administrator with no avail.

I tried the /e option and it didnt much more info other then the error number of 00A1AFD8.

If I turn off UAC (and reboot) it works.  This isnt very convienent obviously and will not work on computer this is distributed to.

Running Win7 x64, VS 2008, C#.

Any clues?

Thanks
Ernie
0 Kudos
2 Replies
RuchiraWelikala
Regular Contributor
To un-register a dll or ocx file :

Click Start > Run >Type

regsvr32 <path & filename of dll or ocx> /u

Click Enter.

http://www.winvistaclub.com/e43.html

Make sure you run command prompt in Admin mode. 
Also, when you're building your solution, make sure it's in 32bit mode.  This might also be an issue as to why you are having difficulties unregistering the program.
0 Kudos
ErnieSalazar
Regular Contributor
http://www.winvistaclub.com/e43.html

Make sure you run command prompt in Admin mode. 
Also, when you're building your solution, make sure it's in 32bit mode.  This might also be an issue as to why you are having difficulties unregistering the program.


Thanks rwelikal.  I tried both the standard regsvr32 and the ESRI version as well (ESRIRegAsm).  Neither works.  I set the platform target as well to x32. I made sure it was ran under admin mode on everything.

It definitely has something to do with UAC.  Guess I have to fool around with it some more.

Ernie
0 Kudos