473,508 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Regasm: How to use?

I was playing with a COM example in an article at the MSFT web site.
This resulted in a DLL, call it x.dll, getting registered.

When I was done, I tried to unregister the dll using

regasm /u path\x.dll

Got an error, don't recall the text of the error.

So my fat fingers went into regedit and tried to delete all keys referring
to x.dll, other than those in the obvious MRU lists.
When I tried to delete, as I recall, the keys in HKCR, I was not allowed to
do so.
Rebooted and the keys were gone.

I figured that I must have screwed up as that was a mighty dirty process.
I copied x.dll, x.pdb, and x.tlb to D:\ to reduce fat finger errors.

I then used

regasm d:\x.dll

Checking the registry, I saw that the critter was registered.
Flush with my success, I then tried

regasm d:\x.dll /u

Sadly, that resulted in the same error as when I manually deleted the keys.

Rebooting caused the dll to become unregistered.

Obviously, I'm missing something.
How is one supposed to unregister a DLL, be it COM or not?

--
http://www.standards.com/; See Howard Kaikow's web site.
Nov 20 '05 #1
3 15061
"Howard Kaikow" <ka****@standards.com> schrieb
I was playing with a COM example in an article at the MSFT web
site. This resulted in a DLL, call it x.dll, getting registered.

When I was done, I tried to unregister the dll using

regasm /u path\x.dll

Got an error, don't recall the text of the error.


I don't see a VB.Net related question. The best fitting group is probably
microsoft.public.dotnet.framework.interop or you may find a better framework
related group.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* "Howard Kaikow" <ka****@standards.com> scripsit:
When I was done, I tried to unregister the dll using

regasm /u path\x.dll

Got an error, don't recall the text of the error.

So my fat fingers went into regedit and tried to delete all keys referring
to x.dll, other than those in the obvious MRU lists.
When I tried to delete, as I recall, the keys in HKCR, I was not allowed to
do so.
Rebooted and the keys were gone.

I figured that I must have screwed up as that was a mighty dirty process.
I copied x.dll, x.pdb, and x.tlb to D:\ to reduce fat finger errors.

I then used

regasm d:\x.dll

Checking the registry, I saw that the critter was registered.
Flush with my success, I then tried

regasm d:\x.dll /u

Sadly, that resulted in the same error as when I manually deleted the keys.

Rebooting caused the dll to become unregistered.


Post the error message. It's impossible to help without knowing it.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c6************@ID-208219.news.uni-berlin.de...
Post the error message. It's impossible to help without knowing it.


I just tried to reproduce the error, but no error occurred.
Nov 20 '05 #4

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

Similar topics

5
3253
by: Kevin Flanagan | last post by:
This can be reproduced with VS.NET as follows. Create a new ATL project with default wizard settings (dll, attributed). To the 'module' attribute, add a specifier 'version = "1.10" ' alongside the...
0
1722
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, TlbExp.exe and Regasm.exe tools aid us in exporting assembly information to a type library so that non .Net Applications or unmanaged code use this type library information to call...
2
3900
by: Id L | last post by:
hi, i want to use gacutil.exe and regasm.exe but i don't want to install "all" .net framework SDK do you know if i can install only these 2 methods? or maybe i can use them without installing...
2
4521
by: Sara | last post by:
I have written a class and tried to register it using regasm.exe using regasm myTest.dll /tlb:myTest.tlb tlb file got generated and i got dll registered successfully msg. but when i go and...
2
2883
by: Kenneth Jonsson | last post by:
I have an COM server in an assembly. When it is deployed on a target computer it needs to be registred with RegAsm. I created a custom action in the deploy project, starting RegAsm with the...
0
2786
by: rbanerji | last post by:
I have a COM object built in C#. Its a an IE deskband. It implements the following method: public static void Register( Type t ) Which gets called when regasm is used and it makes teh...
1
4457
by: auad | last post by:
hi, I would like to register a dll (regasm) during the execution of my setup using custom actions. I don't know where to place the parameters for regasm in the custom action. I tried using "...
2
4350
by: gopal | last post by:
I installed MS DevEnv 2003 with framework 1.1.I developed a small application which looks out for the assembly vcersion of a .net DLL or EXE via code. But i have a problme durng the registration...
2
5958
by: xamman | last post by:
hi there, i am trying to use a .NET assembly from a Cscript.exe .vbs (i.e. from COM) and could not get my .vbs to use my .net dll (gives a 'file not found error') unless i used the /codebase...
5
5583
by: vovan | last post by:
My VB6 application uses DLL developed in VB2005. It may be changed very often and everytime VB6 application unregisters an old version, replaces with a new one and registers a new version by using...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7061
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...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4716
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...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
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 ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
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...

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.