Windows Azure SDK Compute Emulator Fails to Start
Updated: September 21, 2011
Applies to: Windows Azure SDK 1.5
When using Microsoft Visual Studio to deploy or start a deployment, the following error message is displayed:
Unable to connect to dfService.
When using CSRun.exe to start a deployment, the compute emulator attempts to start, but quickly fails, as indicated by the system tray message as shown below:
Cause: The cause of the failure is due to space in the user name.
Resolution: To correct the issue:
Open a Windows Azure command prompt.
Set the environment variable _CSRUN_STATE_DIRECTORY to a path that does not contain spaces. For example, _CSRUN_STATE_DIRECTORY=c:\dftemp
Note You can make this a system-wide setting by right clicking Computer, selecting Properties, Advanced System Settings, and Environment variables and setting the _CSRUN_STATE_DIRECTORY environment variable. After rebooting you will not encounter the issue…
Use CSRun.exe /devfabric:start to start the emulator.
Once the emulator is started you can use it from Visual Studio as normal.