Digital Fusion
Digital Fusion

Reputation: 165

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

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.

Upvotes: 2

Views: 3259

Answers (2)

InvisGhost
InvisGhost

Reputation: 356

I ran into this issue after I switched the "Default terminal application" to Windows Terminal. I had to restart Visual Studio and then it worked again but using Windows Terminal caused other issues so I had to revert and restart VS again.

As @Trout.Z mentioned, you may also want to enable the Automatically close the console when debugging stops option in Visual Studio. You can find it in the options under Debugging > General.

Upvotes: 14

Rajshee Turakhia
Rajshee Turakhia

Reputation: 274

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.

Upvotes: -4

Related Questions