Question

I can't run the Windows Azure Hello World sample. It gives me the following error:

"Start role failed for one or more roles".

I put the project in the root of my D drive to be sure that path length is not an issue. I also cleared the Azure temp folder.

I am using the newly released version 1.4 of the SDK.

Was it helpful?

Solution

One common cause of this problem is that the development fabric (also known as "compute emulator") isn't running as Administrator on the local machine. If you manually start the compute fabric, this may be the reason. If you start the compute emulator from Visual Studio (e.g. by pressing F5), it will start the compute emulator running as administrator provided the VS instance is running as Administrator (you have to right click VS in the Start menu and select "Run As Administrator" to run it that way).

Another cause is that the web role is the startup project rather than the Azure service. The Azure service (the one with the .cscfg under it) has to be the startup project (right click on it and select "Set as Startup Project").

OTHER TIPS

Sounds like you have an exception in the OnStart method of one of your Role(s). I would:

1) Make sure that all exceptions are handled 2) Start logging the exceptions or put a breakpoint to see what's happening

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top