Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio registry capture utility has stopped working, error compiling C# project in Windows7

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.

like image 607
shahjapan Avatar asked Feb 25 '10 12:02

shahjapan


4 Answers

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"

like image 66
Nick Craver Avatar answered Oct 30 '22 18:10

Nick Craver


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.
like image 22
sw. Avatar answered Oct 30 '22 16:10

sw.


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'

like image 1
John Pittaway Avatar answered Oct 30 '22 17:10

John Pittaway


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.

like image 1
Caleb Hanson Avatar answered Oct 30 '22 16:10

Caleb Hanson