Reputation: 7128
My ASP.NET web application is running in IIS. Sometimes I am unable to debug it and the JIT debugging commands (Debugger.Launch()
and Debugger.Break()
) do not work.
When this happens, I can use Debug / "Attach to Process" in VS 2015 and the w3wp.exe process is listed with a type x64
rather than the usual Managed (v4.0.30319), x64
.
How is this possible, and how do I fix it?
I am building in Debug mode, and the web.config has
<compilation debug="true" targetFramework="4.5.2" />
All the settings I can find in the project and IIS are the same as dozens of other projects that all work fine.
Upvotes: 2
Views: 896
Reputation: 7128
Turns out that I had the AppPool set with:
Start Mode AlwaysRunning
but the website was:
Preload Enabled False
I was, therefore, seeing an effectively empty App Pool, so it was listed as x64
and not Managed.
Once I set the website to Preload Enabled
, it was fine again.
Upvotes: 5