简体   繁体   中英

How to register COM object and its associated Interop assembly?

I have developed a .NET application in my dev machine which is dependent on a COM object. I somehow have this COM object registered in my registry. So, I added reference to this COM object and VS.NET generated Interop for me. Everything is okay in my Dev machine. But, I'm trying to deploy this on a testing machine which doesn't have the COM registered. So, I ran RegSvr32 from Syswow64 folder and registered the COM successfully and Now trying to run regasm to register the Interop generated by the VS.NET, but throws error as unable to find the file.

regasm "D:\\App\\Bin\\Interop.IManage.dll"

Yes, I got it. I don't need to register the Interop. Regasm is for registering the .NET assembly (not interop) as a COM object for applications like VB6 to use them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM