Visual Studio注册表捕获实用程序遇到问题 [英] Visual Studio registry capture utility has encountered a problem

查看:90
本文介绍了Visual Studio注册表捕获实用程序遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近重新安装了开发机器,并从32位Windows Vista迁移到了64位Windows7.我正在运行VS2008.

I recently reinstalled my development machine and went from 32 bit Windows Vista to 64 bit Windows 7. I'm running VS2008.

我的某些.NET应用程序仍然使用J#,这现在会引起问题.该程序仍在运行,但是当我要部署它时(我正在使用安装项目来创建.msi),出现此错误:

Some of my .NET applications still use J#, which now causes problems. The program still runs, but when I want to deploy it (I'm using a setup project to create a .msi), I get this error:

"Visual Studio注册表捕获实用程序遇到问题"

"Visual Studio registry capture utility has encountered a problem"

我该如何解决? 其他程序(纯C#编写)不会发生此错误.

How can I fix this? This error does not occur with other programs (those written purely in C#).

推荐答案

是的,这是Win7和VS2008在创建公开COM对象的安装程序时的已知错误.

Yes, this is a known bug with Win7 and VS2008, in creating an installer that exposes COM objects.

这是解决方法

感谢@RogerFraser给我小费,因为我遇到了同样的问题

Thanks @RogerFraser for the tip as I was having the same problem

解决.

  1. 在此处找到regcap.exe: C:\ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ Tools \ Deployment
  2. 右键单击并选择属性.
  3. 选择兼容性"标签
  4. 复选框,以在兼容模式下运行此程序.
  5. 在操作系统"下拉列表中选择Windows Vista SP2.
  6. 单击确定并重新编译".
  1. Locate regcap.exe here: C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment
  2. Right click and select properties.
  3. Select Compatibility tab
  4. Check box to Run this program in compatibility mode.
  5. Select Windows Vista SP2 in the OS drop-down.
  6. Click Ok and Recompile.

HTH.

这篇关于Visual Studio注册表捕获实用程序遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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