Glen Little
Glen Little

Reputation: 7128

IIS AppPool running as x64 (not Managed) - Why?

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

Answers (1)

Glen Little
Glen Little

Reputation: 7128

Turns out that I had the AppPool set with:

Start Mode     AlwaysRunning

enter image description here

but the website was:

Preload Enabled     False

enter image description here

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

Related Questions