Visual Studio registry capture utility has stopped working, error compiling C# project in Windows7
Solution 1
- Locate regcap.exe here: C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment
- Right click and select properties.
- Select Compatibility tab
- Check box to Run this program in compatibility mode.
- Select Windows Vista SP2 in the OS drop-down and Run as Administrator.
- 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"
Solution 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.
Solution 3
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.
Solution 4
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'
Related videos on Youtube
shahjapan
Passion: Computer Science, Programming, R & D, Troubleshooting Programming: Python, C#, Shell scripting Frontend Technologies: Bootstrap, Javascript, JQuery, SCSS Cloud Technologies: GCP, AWS Virtualisation: Docker, Docker-Compose, k8s RDBMS: MySQL, PostgreSQL, SQLite Operating Systems: Linux, Windows, OSX Testing: Unit Tests, pytest, Jenkins, selenium Hobbies: Playing Chess, Swimming & roaming -- Japan Shah
Updated on July 09, 2022Comments
-
shahjapan almost 2 years
Windows 7 Shows build error like below everytime I compile my project.
-
Guge about 14 yearsThis also works for 64 bit Windows 7 with VS 2010. The path for regcap is C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment
-
DilbertDave almost 14 years@Guge: Lucky you- not working for me in VS2010 on 64bit Win7 :-(
-
Guge almost 14 years@DilbertDave: Which part doesn't work for you? Have you completed all 6 steps in the answer and still got the error message?
-
DilbertDave almost 14 years@Guge: Senior moment here, VS2008 (running as Administrator) not VS2010. Above fix does not work for VS2008.
-
Tom over 13 yearsthis is no more working. it was working OK but now my Win7 machine gives "WARNING: Unable to create registration information for file named xx.ocx"
-
Qwertie over 13 yearsThis fix seems to work for my Visual Studio 2008 on Win7 x64... but I was getting the error in an MSI project, not a C# project.
-
sw. over 13 yearsI added another reason, after hours of fighting.
-
smirkingman about 13 years+1 works with Windows 7, VS 2010 when building AddinExpress projects. Many thanks. [rant]Why do we (have to) put up with this sort of witchcraft sh*t?[/rant]
-
GargantuChet almost 13 yearsThis isn't an answer -- 32-bit vs. 64-bit doesn't have anything to do with the question (or the error message shown).
-
Henk Holterman almost 13 years@Garga : It is an answer. It may be wrong but no reason to flag it.
-
GargantuChet almost 13 yearsRight now it isn't clear if this "answer" relates to the question at all. So someone can compile as 32-bit; what does that have to do with the error received with shahjapan? Put another way, if I thought defragmenting his hard drive would solve this problem, I might post instructions on how to do it. But I'd also make it clear why I thought the two were related. Otherwise it would just seem random.
-
Admin almost 12 yearsConfirming that this works with Visual Studio 2008 Professional under Windows 7 Professional 64 bit when compiling a WiX project
-
Gavin Perkins over 10 yearsI dont even have a tools folder inside C"\Program Files\Microsoft Visual Studio 9.0.