Geeks With Blogs
Paul Chapman .Net Musings

I have been playing around with Microsoft Azure. I was interested because one of my current development projects has a shoestring budget (read no budget). MS Azure will allow for the hosting costs to increase with the site's success.

So it was time to have a go at using Azure's storage functionality to store the data for the site. To this end I downloaded a couple of storage demonstrations to see how it works. With Azure being a beta and a fair new technology looking at demos is often the best way of learning it. These demonstrations were  Windows Azure Walkthrough: Simple Table Storage and Windows Azure Blog Source Code from PDC.

Both exhibited the same problem; and threw the following error

System.Data.Services.Client.DataServiceClientException: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream()
at System.Data.Services.Client.DataServiceContext.SaveAsyncResult.BeginNextChange(Boolean replaceOnUpdate)

The answer appears in the comments of the latter post. It turned out that the Table Service for the solution was not running. To check it's status when running the Azure solution two icons appear in the system tray labelled. It is the development storage we are interested in. To prevent this error simple start the Table Service.


I found that once this had been started once, the error (so far) has not re-occurred, even with other projects.

Posted on Friday, January 2, 2009 10:59 PM | Back to top

Comments on this post: 'Unable to connect to the remote server' Error with Azure Table Storage

# re: 'Unable to connect to the remote server' Error with Azure Table Storage
Requesting Gravatar...
Any sample code source ?

Left by ae on Jun 26, 2009 5:35 AM

# re: 'Unable to connect to the remote server' Error with Azure Table Storage
Requesting Gravatar...
I once stepped on a goomba that had spikes in its shells while I was on the way to save the princess. Ouch that smarts!
Left by Super Mario on Oct 20, 2009 2:32 PM

Your comment:
 (will show your gravatar)

Copyright © paulschapman | Powered by: