Visual Studio 2010-TYPE_E_REGISTRYACCESS [英] Visual Studio 2010 - TYPE_E_REGISTRYACCESS

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

问题描述

我正在构建我的VS2010解决方案,并且在输出窗口中仅一个项目就有一个错误.

I'm building my VS2010 solution and in output window there is an error just for one project.

在错误标签中:

Error   161 Cannot register type library "D:\Sites\Website\MyPortal.Website.Controllers\bin\Debug\MyPortal.Website.Controllers.tlb". Error accessing the OLE registry. (Exception from HRESULT: 0x8002801C (TYPE_E_REGISTRYACCESS)) MyPortal.Website.Controllers

在输出"标签中:

Compile complete -- 0 errors, 153 warnings
  MyPortal.Website.Controllers -> D:\Sites\Website\MyPortal.Website.Controllers\bin\Debug\MyPortal.Website.Controllers.dll
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3341,9): warning MSB3214: "D:\Sites\Website\MyPortal.Website.Controllers\bin\Debug\MyPortal.Website.Controllers.dll" does not contain any types that can be registered for COM Interop.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3341,9): error MSB3213: Cannot register type library "D:\Sites\Website\MyPortal.Website.Controllers\bin\Debug\MyPortal.Website.Controllers.tlb". Error accessing the OLE registry. (Exception from HRESULT: 0x8002801C (TYPE_E_REGISTRYACCESS))
========== Rebuild All: 8 succeeded, 1 failed, 0 skipped ==========

有什么想法吗?

推荐答案

我发现有人更改了csproj中的属性.

I found out someone changed a property in the csproj.

要解决该错误:

  • 您只需要右键单击该项目,
  • 选择 Build 标签
  • 转到"输出"部分
  • 取消选中注册COM互操作
  • You just have to right click the project,
  • choose Build tab
  • go to Output section
  • uncheck Register for COM interop

这篇关于Visual Studio 2010-TYPE_E_REGISTRYACCESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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