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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With