Visual Studio registry capture utility has encountered a problem

纵然是瞬间 提交于 2019-12-04 15:44:17

问题


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

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 registry capture utility has encountered a problem"

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


回答1:


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

Here is the workaround

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

To solve.

  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.




回答2:


This did not work for me until I came across this blog post where the poster looked at the debug information and found a buffer overflow error with long paths. I put the solution into C:\temp and I was able to compile it after following the steps posted by Noam and Kris. This was on a project upgraded from VS2005 to VS2010 on Windows 7 x64.




回答3:


Unfortunately it didn't work for me, still getting the same error. Using Windows 7 Enterprise Edition, 64 Bit.

That's the error details (German only, sorry):

Problemereignisname:    BEX
  Anwendungsname:   REGCAP.EXE
  Anwendungsversion:    9.0.21022.8
  Anwendungszeitstempel:    47316c84
  Fehlermodulname:  MSVCR90.dll
  Fehlermodulversion:   9.0.30729.4926
  Fehlermodulzeitstempel:   4a1743c1
  Ausnahmeoffset:   0003689c
  Ausnahmecode: c0000417
  Ausnahmedaten:    00000000
  Betriebsystemversion: 6.1.7600.2.0.0.256.4
  Gebietsschema-ID: 3079
  Zusatzinformation 1:  0a73
  Zusatzinformation 2:  0a7372810d093ef4e8ab14e85634e08a
  Zusatzinformation 3:  6150
  Zusatzinformation 4:  6150f9546d0a47d70659c34cf83b2016


来源:https://stackoverflow.com/questions/1708541/visual-studio-registry-capture-utility-has-encountered-a-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!