Debugging Azure: Error attaching the debugger to t

2019-01-13 21:26发布

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.

8条回答
ゆ 、 Hurt°
2楼-- · 2019-01-13 22:23

I encountered this exact same problem when I upgraded an existing Azure solution to the Azure SDK 2.1. After some hunting around I uncovered that the upgrade had automatically set the "Local Development Server" setting to "Use IIS Web Server".

Changing the "Local Development Server" setting to "Use IIS Express" fixed the problem immediately.

To access this setting right-click the Azure cloud project file in your solution, select the "Properties" option, tab down to "Web" and you'll see the following setup.

enter image description here

查看更多
贪生不怕死
3楼-- · 2019-01-13 22:27

Check the version of Azure APIs in your project, go to Project > references and right click on Azure dlls to check the version, same sdk version must be installed on the system, higher are optional as azure 2.x are not backward compatible.

查看更多
登录 后发表回答