Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017, cannot debug or run the application

After I turned on my computer today, I haven't been able to debug or run the application at all. If I publish the project, it works fine. But if I run it from Visual Studio, it's just stuck loading and Visual Studio stops responding.

Here are the errors I get when I force quit the application:

Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll
Exception thrown: 'System.Globalization.CultureNotFoundException' in mscorlib.dll
Exception thrown: 'System.Security.SecurityException' in mscorlib.dll
The program '[6276] chrome.exe: WebKit' has exited with code -1 (0xffffffff).
The program '[8852] iisexpress.exe' has exited with code -1 (0xffffffff).

Have you ever experinced anything similar? I've been trying to look up answers but haven't been able to locate any. Also I tried on a diffrent machine, and cannot debug the application there either.

Have tried updating and reinstalling all packages using Nuget.

Best Regards Solan.

like image 556
Solan Avatar asked Aug 15 '17 09:08

Solan


People also ask

How do I enable run and debug code in Visual Studio?

To run or debug a simple app in VS Code, select Run and Debug on the Debug start view or press F5 and VS Code will try to run your currently active file. However, for most debugging scenarios, creating a launch configuration file is beneficial because it allows you to configure and save debugging setup details.

How do I fix the debug executable in Visual Studio?

Just use File/Open Project/Solution, select EXE file and Open it. Then select Debug/Start debugging. The other option is to run the EXE first and then Select Debug/Attach to process.

How do you fix Visual Studio Cannot start debugging because the debug target is missing?

Go to Build > Configuration Manager, and make sure the project has selected the Build. Then rebuild the project and see. If the answer is the right solution, please click "Accept Answer" and kindly upvote it.

How do I fix access denied error in Visual Studio?

0x80070005 - Access Denied To work around this issue, coordinate with your system administrator or other IT professional to make sure that these processes don't lock Visual Studio files. The user who is trying to install Visual Studio doesn't have administrator credentials on the computer.


1 Answers

We had the same problem after a Chrome update yesterday. If you switch off the Javascript debugging in options:

Options -> Debugging -> Enable Javascript Debugging in Asp.NET

Then it runs fine.

like image 98
Richard Avatar answered Oct 19 '22 17:10

Richard