注册COM Interop [英] Register for COM Interop

查看:88
本文介绍了注册COM Interop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在构建属性的注册为COM互操作选项被选中,我得到一个错误:

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

无法注册程序集-access拒绝

Cannot register assembly -access denied

如果取消选中该选项,则项目构建将没有任何错误.但是我的要求是注册COM对象,因为我需要在VB中使用COM对象.有人可以帮我吗?

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?

推荐答案

在Windows Vista和更高版本中,请尝试运行增强的Visual Studio,因此它具有执行

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.

这篇关于注册COM Interop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆