Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Register for COM Interop

When the Register for COM Interop option in the build properties is checked, I get an error:

Cannot register assembly -access denied

When the option is unchecked, the project builds without any error. But my requirement is to register the COM objects as I need to use the same in VB. Can anyone help me out in this?

like image 618
Kings Avatar asked Oct 22 '10 12:10

Kings


1 Answers

Under Windows Vista and higher, try to run Visual Studio elevated, so it has the permissions necessary to perform a regasm on your output assembly.

like image 145
Frédéric Hamidi Avatar answered Jan 01 '23 23:01

Frédéric Hamidi