Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure - error on starting with multiple web role projects

Tags:

azure

webrole

If I have more than one webroles(projects, not instances) in my application, I get this error: (I only get it if I attach a web role. It works fine wit as many worker roles projects as I want)

Microsoft Visual Studio

Windows Azure Tools for Microsoft Visual Studio

There was an error attaching the debugger to the IIS worker process for URL 'http://127.0.0.1:5100/' for role instance 'deployment(21).CloudPOC.WebRoleToHostDataService.0'. Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.

Click Help for more information.

OK

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

like image 466
Ryan Avatar asked Dec 27 '10 20:12

Ryan


1 Answers

Make sure you are starting the Azure project rather than the Web Project itself. You might have set the Web Role as the startup project, and if you do that you'll find that IIS runs the Web App rather than the Azure Dev Fabric, meaning any Dev Fabric specific stuff (like config settings per role) aren't available causing problems.

What you're meant to do is let the Azure Dev Fabric (Compute Simulator) fire up all your roles for you, and it'll also work out if it needs to open a web browser etc.

So right click on the Azure Cloud project, set that as the Startup Project, and try again.

Hope that helps, Andy

EDIT thought of something else!

Make sure your web.config is compiling to allow debug="true". If you have added a new WebSite to your solution, it won't be so by default:

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

like image 59
AndyElastacloud Avatar answered Oct 08 '22 19:10

AndyElastacloud