Visual Studio registry capture utility has stopped

2019-02-05 15:56发布

问题:

Visual Studio registry capture utility has stopped working.... http://easycaptures.com/fs/uploaded/256/9376236710.png

Windows 7 Shows build error like below everytime I compile my project.

回答1:

From Microsoft Connect:

  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 and Run as Administrator.
  6. Click Ok and Recompile.

This solution also works on Windows 7 with Visual Studio 2008 (32 bit version), where in the 5th step, you just need to select the check box in the last group box "Privilege Level" for "Run this program as an administrator"



回答2:

Another reason From Add-In-Express:

  • Long paths (a buffer overflow?). This was my case: I had *.tlb in a setup project with a long path, I excluded it and it compiled ok.


回答3:

I ran into this build an MSI project using VS 2008 on Windows 7 64 bit. The problem was that an assembly that reference Microsoft.InteropFormTools.tlb and had to be callable from VB 6 through COM. Visual Studio defaulted the type library's Registry property to vsdrfCOMSelfReg. Changing it to vsdrfDoNotRegister solved the problem.

TIP: Pay attention to the Output window during the Build/Rebuild processing. I saw the following warning after I closed RegCap program:

Note: Unable to create registration information for file named 'Microsoft.InteropFormTools.tlb'



回答4:

I also encountered this error when I tried to add a class to my project that had previously been compiled as an external DLL that was added as a reference. I added the class to the project, but forgot to remove the reference to the DLL. Removing the reference to the external component resolved the problem and this error message no longer occurred.



回答5:

In case anyone is running into this issue with Visual Studio 2015, the path for regcap is now C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\VSI\bin.



回答6:

FYI, If your project doesn't require to build in 64bit , you can build it in 32 bit instead. 1. Run Visual Studio in Compatibility mode for Window XP: + Right click Visual studio icon + Select Properties + In Compatibility tab, check on Run this program in compatibility mode for Window XP SP3 and check on Run this program as administrator 2. Go to Configuration manager and Debug your project in X86 mode