First of all, it’s been a while since I’ve blogged here. I was busy and last month I’ve attended Microsoft PDC conference. It was amazing and had a good time. So many new things coming, lots of stuff for Silverlight, new Windows 7 and of course Windows Azure.
So, here I am, testing my first cloud service. I followed the instructions here Quick Lap around the Windows Azure Tools for Microsoft Visual Studio
But for my surprise, I couldn’t run it smoothly. First of all, when I tried to run the solution with debugging I’ve got an error about creating the storage. Because this was the 1st time I was creating a cloud service, the storage tables needed to be created on my SQL database. A command DSinit needs to be invoked but it failed. After searching for information on the problem, I couldn’t find any links except for this.
Basically looks like this is a bug in the Azure SDK. If you have an account (I use Vista) with a space in the name, for example “John Doe”, then you may have some problems. The way I’ve found to fix this was to manually run the command via the Azure SDK command prompt. Just put the name between double quotes, something like:
C:\Program Files\Windows Azure SDK\v1.0>dsinit /server:myPC\sqlexpress /for
ceCreate /user:”myPC\John Doe”
So after doing that the storage tables were succesfully created. Then I tried to run the solution again, but this time the Development fabric had problems to start the WebRoles, they would show looping messages about Role starting, abort, suspend. Then doing some more investigation I’ve found another link saying that the problem was because my user name has a space in it and Visual Studio tries to start the fabric from a location inside your user profile folder so it fails. The workaround was to open the Azure SDK command prompt again and start the Development Fabric service manually but this time pointing to a folder that doesn’t have a space in it, something like
C:\Program Files\Windows Azure SDK\v1.0\bin\devfabric>DFService.exe -sp “c:\fabr
ictemp”
After doing that the WebRole instaces in the Development Fabric could be started and I was happy I could finally play with my first Cloud Service. The only problem is that everytime I want to develop something I need to manually start it. Hope they fix that in the next CTP version.
Hope that helps,
AN.

