question

Shane-7909 avatar image
0 Votes"
Shane-7909 asked YijingSun-MSFT commented

Asp.net web applications fail to debug on fresh install

I’ve recently had to do a fresh install of windows which has me reinstalling Visual Studio and IIS.
Since doing this I cannot debug any Asp.net Web application, I can create any type be it windows forms, empty all will not load correctly in to debug.
A single page will load up looking to attempt but then immediately Visual Studio goes in to break mode with the following error.

147289-image.png

I can attempt to continue execution which continues with errors.
In the output I get the following:
The runtime has encountered a fatal error. The address of the error was at 0xf0d444e2, on thread 0x3ff0. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

The program ‘[16508] iisexpress.exe’ has exited with code -1 (0xffffffff).

I run Visual Studio as Administrator, I’ve reinstalled IIS multiple times,
Set IIS to allow 32bit applications.
Tried to change the port which it loads on.
Visual studio is 2017 edition.


dotnet-csharpwindows-server-iisdotnet-aspnet-generaldotnet-aspnet-webpages
image.png (91.6 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What exactly was the project template you used to create it? ASP.NET 4.x or ASP.NET Core?

0 Votes 0 ·

The .Net framework
147590-image.png


0 Votes 0 ·
image.png (76.6 KiB)

1 Answer

YijingSun-MSFT avatar image
0 Votes"
YijingSun-MSFT answered YijingSun-MSFT commented

Hi @Shane-7909 ,
Do you have the managed codes? Wheather your problem is caused by unmanaged part of the code somewhere else?
Best regards,
Yijing Sun


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm unsure what you mean? I get this error on any new project for Asp.net Web Application(.Net Framework) C# coding.

0 Votes 0 ·

Hi @Shane-7909 ,
First,your error message is FatalExecutionEngineError. It's the managed debugging assistant. So,do you have used "Hosted compatibility mode"? And it need IISExpress setting is x64. I think you could update your framework to 4.8.
Best regards,
Yijing Sun

0 Votes 0 ·