Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Where you once used Regsvr32 on unmanaged COM libraries, you will now use Regasm on managed .NET libraries.
“Regsvr32 is the command-line tool that registers .dll files as command components in the registry“
“Regasm.exe, the Assembly Registration tool that comes with the .NET SDK, reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class. The class is registered only once, when the assembly is installed. Instances of classes within the assembly cannot be created from COM until they are actually registered.“
If you want to register an assembly programmatically, see the RegistrationServices class and ComRegisterFunctionAttribute
Anonymous
August 02, 2004
The comment has been removed
Anonymous
August 02, 2004
It might worth mentioning a couple of related utilities: gacutil and installutil. They both do similar things to regasm, but under different circumstances (i.e., use gacutil when you don't actually have COM exports; use installutil for a Windows service).
Anonymous
August 02, 2004
And, IMHO, you should never use these tools for real deployments. SelfReg (in all of its guises) is evil outside of the developer environment. Please, don't expect setup to RegAsm (or regsvr32) your files.
Anonymous
August 02, 2004
aww - and here I thought it was Copy/Paste! (just kidding...)
Anonymous
August 02, 2004
Rob,
Could you explain your position further? I work on a COM-dependent system. If I develop .NET assemblies they will be for deployment in this existing system. It won't see a rewrite to .NET for some time (if at all). Just how am I to use the assemblies if I "should never use these tools [Regasm] for real deployments"?
Anonymous
August 05, 2004
And then you have regsvcs for services...
Anonymous
December 27, 2004
[http://itpeixun.51.net/][http://aissl.51.net/][http://kukuxz003.freewebpage.org/][http://kukuxz001.51.net/][http://kukuxz003.51.net/][http://kukuxz005.51.net/][http://kukuxz002.51.net/][http://kukuxz004.freewebpage.org/][http://kukuxz007.51.net/][http://kukuxz001.freewebpage.org/][http://kukuxz006.51.net/][http://kukuxz002.freewebpage.org/][http://kukuxz004.51.net/][http://kukuxz008.51.net/][http://kukuxz009.51.net/][http://kukuxz005.freewebpage.org/][http://kukuxz006.freewebpage.org/][http://kukuxz007.freewebpage.org/][http://kukuxz009.freewebpage.org/]
Anonymous
November 26, 2008
PingBack from http://blog.lulutech.com/PermaLink,guid,46a6e29d-b54c-4a54-ba0b-e90d0a676d01.aspx
Anonymous
December 01, 2010
Is it similar to gacutil?What is the difference btw regsvr32.exe and gacutil.exe
Anonymous
December 12, 2011
The comment has been removed
Anonymous
April 23, 2015
Thanks for this post. I make it after read this post and posting in httx://menetes.blogspot.com/2015/04/a-reference-to-dll-could-not-be-added.html for another real case.
Please sign in to use this experience.
Sign in