Visual Studio - cannot run any projects: application was unable to start correctly (0xc0000142)

0
  • Windows 10 x64
  • Visual Studio 2012 x32
  • .NET Framework 3.5 and 4.6

I cannot run/debug/F5 any projects in Visual Studio. I have tried nopCommerce, BlogEngineDotNet, File->New Website, etc. First I was getting an error about .NET 4.5 and .NET 4.0 not being registered, but I installed the fix from Microsoft (https://support.microsoft.com/en-us/kb/3002339) which resolved that issue.

Now, everytime I try to F5 I get the error below.

enter image description here

I've searched until I was ready to beat my head against the desk. I found a lot of posts from a few years ago saying to use dependency walker to see if any pre reqs fail, but dependency walker says its only good up to Windows 8.

c#
asp.net
.net
visual-studio-2012
windows-10-desktop

1 Answer

-1

uninstall Visual Studio 2012 x32 and install new Visual Studio 2012 x64 because your os is 64 bit

above code helps you to make it working.

answered on Stack Overflow Nov 7, 2016 by Rajshee IFour

User contributions licensed under CC BY-SA 3.0