Debugging Azure: Error attaching the debugger to the IIS worker process

Mide picture Mide · Feb 23, 2012 · Viewed 16k times · Source

I have a web application asp.net to deploy to Windows Azure. I try to run it on local first. But when debugging, I catch this error from VS2010:

"There was an error attaching the debugger to the IIS worker process 
for URL 'http://127.255.0.0:82/' for role instance 
'deployment16(6).WindowsAzureProject2.WebApplication3_IN_0'. 
Unable to start debugging on the web server ......."

I've search so hard to find the solution for this problem but there's nothing seems work for me. I'm a newbie in Windows Azure, it's really a big trouble with me.

Answer

Miguel Lopez picture Miguel Lopez · Oct 10, 2012

I had similar problem with Windows 8, debuging a cloud application with Visual Studio 2012 RTM and Azure SDK 1.71, when trying to launch the application into the compute emulator. It was a very simple app, but I used Azure diagnostics. At the end these are two things I have changed that have work for me, both turning on Windows 8 features (so go to Win8 and open 'Turn Windows Features On/Off'.

Activate the checkboxes for:

  1. Internet Information Services Hostable Web Core

  2. Internet Information Services > World Wide Web Services > Application Development Features > ASP.NET 4.5

  3. Internet Information Services > World Wide Web Services > Health and Diagnostics > Tracing

  4. Internet Information Services > Web Management Tools > IIS Management Scripts and Tools

That worked for me, it makes sense, as I'm using Visual Studio 2012 and trying to get some trace information using diagnostics in Azure.

I hope this will work for you or give some tip about the problem. In the case of being useful information, remember to vote as response or as value tip.

Thanks,

Mike