Azure - Crash on startup with multiple web role projects

If I have more than a few webroles in my application (projects, not instances), I get this error: (I get it only if I attach a web role. It works fine, like many work role projects, like me want)

Microsoft Visual Studio

Windows Azure Tools for Microsoft Visual Studio

Error connecting the debugger to the IIS workflow for the URL http://127.0.0.1►100/ 'to deploy an instance of role (21) .CloudPOC.WebRoleToHostDataService.0'. Cannot start debugging on the web server. The web server is not configured correctly. See Help for general configuration errors. Running a web page outside of the debugger may provide additional information.

Click Help for more information.

Ok

What is wrong here? I can't figure it out and I need a webservice project!

+5
source share
3 answers

Make sure you run the Azure project, not the web project itself. You may have defined the role of the web role as the launch project, and if you do, you will find that IIS launches the web application and not the Azure Dev Fabric, which means that any Dev Fabric material (e.g. configuration settings for each role) is not an available problem.

What you have to do is let Azure Dev Fabric (Compute Simulator) run all your roles for you, and it will also work if you need to open a web browser, etc.

, Azure Cloud, .

, , Andy

EDIT - !

, web.config , debug = "true". WebSite , :

< system.web >   < compilation debug = "true" targetFramework = "4.0" / >

+6

, .

  • , ​​ .NET Framework 4.0. (.Net Framework 4.0.30319 - )

  • , - .Net 4.0, " ".

  • % windir%\Microsoft.NET\Framework64 .Net framework 4.0

+2

, , 4.0... :

'system.web.extensions/scripting/scriptResourceHandler',

: http://forums.asp.net/t/1571308.aspx/1

, vs2010 4.0... , ... .

+1

All Articles