user4266661
user4266661

Reputation:

Remote Debugging Azure App Service Site Fails

I'm trying to debug an ASPNET Core/EF Core website hosted on Azure. When I try to attach the debugger in VS 2015, via Cloud Explorer, I get this error message:

cloud explorer error

Yet when I check the site in the Azure portal, it sure seems like it's 32 bit and set to enable remote debugging:

portal description

So what am I missing or doing wrong?

Upvotes: 0

Views: 676

Answers (1)

David Ebbo
David Ebbo

Reputation: 43183

Portal setting controls the bitness of the IIS w3wp process. But ASP.NET Core runs in its own process, so that setting has no effect on it. Instead, what determines whether your .NET Core process runs as 32 or 64 bit is how you publish it.

Given that apparently your Core project is published as 64 bit, you might want to try switching the Portal setting to 64 bit. This will affect the debugger MSVCMON.exe process, which should then allow you to attach.

Upvotes: 2

Related Questions