Thursday, September 30, 2010

When starting the Development Fabric for Windows Azure in Visual Studio 2010 are you getting this error:

Windows Azure Tools: Start role failed for one or more roles

Windows Azure Tools: Role instances did not start within the time allowed. Please try again. If you continue to encounter this behavior please try shutting down the Development Fabric.

In your output window? Or, maybe you are seeing these errors in your Windows Event Viewer under the application log:

The worker process for application pool '{B97C113B-B318-4AFC-84DA-XXXXXXXXX}' encountered an error 'The configuration section 'system.webServer/globalModules' cannot be read because it is missing a section declaration

I did, and it was because I had multiple classes in my worker role subclassed from RoleEntryPoint. You can only have one class per Worker or Web Role subclassed from RoleEntryPoint. Special thanks to Microsoft Customer Technology Support. Hope this helps someone.