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

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


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


This usually happens when there's a problem with the project to be deployed to the emulator (WindowsAzureProject2 in your case).

Try the following:

  • Check %UserProfile%\AppData\Local\dftmp\IISConfiguratorLogs\IISConfigurator.log file for the error messages. See more details in this answer.

  • Make sure your project can be started without the emulator. It's a web project, so just try to start it as a regular web project. Or publish it to the separate folder and try to create a website in IIS of it.

  • Check your *.csdef and *.cscfg files to make sure all the configuration is correct.

  • Make sure that the build output of your project is not empty. You can do this by going to IIS, find the site with the name similar to deployment16(6).WindowsAzureProject2.WebApplication3_IN_0, right click --> Explore.... Make sure that this folder is not empty and contains all the files required to start a web project successfully.

BTW, there's a similar question: Debugger can't connect when starting local azure project