Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 991
Mide Avatar asked Feb 23 '12 07:02

Mide


People also ask

How do I continue to debug a process in IIS?

To continue to debug, you must configure IIS to allow the worker process to continue. This error message does not appear with versions of IIS that are older than IIS 7. Open the Administrative Tools window.

What happens when Ping is set to false in IIS?

Setting Ping Enabled to False stops IIS from checking whether the worker process is still running and keeps the worker process alive until you stop your debugged process. Setting Ping Maximum Response Time to a large value allows IIS to continue monitoring the worker process.

How do I debug a process in Visual Studio?

After the process is running, select Debug > Attach to Process or press Ctrl + Alt + p in Visual Studio, and use the Attach to Process dialog to attach the debugger to the process.

How do I fix the IIS error message in Windows 7?

This error message does not appear with versions of IIS that are older than IIS 7. Open the Administrative Tools window. Click Start, and then choose Control Panel. In Control Panel, choose Switch to Classic View, if necessary, and then double-click Administrative Tools.


1 Answers

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

like image 158
Miguel Lopez Avatar answered Sep 21 '22 00:09

Miguel Lopez