I'm using the Windows Azure SDK for Node.js and run into an extremely odd roadblock.
I can test Azure Node.js apps locally using the Windows Azure Emulator fine, until I install Socket.io. Then the emulator refuses to start, spitting out:
Creating local package...
Starting Emulator...
Start-AzureEmulator : An unexpected failure occurred. Details:
The compute emulator had a error: Can't locate service model..
At line:1 char:20
+ Start-AzureEmulator <<<< -Launch
+ CategoryInfo : CloseError: (:) [Start-AzureEmulator], InvalidOperationException
+ FullyQualifiedErrorId : AzureDeploymentCmdlets.Cmdlet.StartAzureEmulatorCommand
Odd thing is, I can deploy the same code/project to Azure, and it runs fine. Only the emulator refuses to work.
What is also odd is that I can't replicate this on a different computer. It seems to only be an issue on my main work box. I've tried npm cache clear
to get a fresh install of Socket.io. I've uninstalled and re-installed the Azure SDK, Azure Emulators, and Azure Node.js tools. Nothing has fixed the issue.
Any ideas? It is getting mighty frustrating to only be able to test after a 10-15 minute deploy to the cloud.
UPDATE:
I should clarify that this scenario is happening with only a worker role (no web roles).