Move from win service to Azure service

Apr 13, 2013 at 6:16 AM
I was working with websocket for a while, I built and run the server to run as a win service.
How I'll be able to move all to Azure as a cloud service?
Apr 13, 2013 at 6:24 AM
There is already a Windows Azure sample project in the source code.
Apr 13, 2013 at 6:52 AM
So all i need is to simply replace the SuperWebSocket with the one I'm using now (implemented the commands) ?
If yest sooo easy :)
Apr 13, 2013 at 8:55 AM
When I publish the service to Azure, I get the following Exception:
10:53:48 AM - Role instances recycled for a certain amount of times during an update or upgrade operation. This indicates that the new version of your service or the configuration settings you provided when configuring the service prevent role instances from running. The most likely reason for this is that your code throws an unhandled exception. Please consider fixing your service or changing your configuration settings so that role instances do not throw unhandled exceptions. Then start another update or upgrade operation. Until you start another update or upgrade operation, Windows Azure will continue trying to update your service to the new version or configuration you provided
10:53:48 AM - Deployment failed with a fatal error
I change the config to fit my websocket server (same as used for win service):
<?xml version="1.0" encoding="utf-8" ?>
    <section name="socketServer" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine"/>
  <socketServer loggingMode="IndependantFile">  
        <server name="WebSocketServerServer"
                ip="Any" port="2011" mode="Async" maxCommandLength="2048000" listenBacklog="500" receiveBufferSize="2048000" sendBufferSize="2048000">
      <service name="WebSocketServer"
               type="WebSocketServer.AppServer.WebSocketServerServer, WebSocketServer.AppServer" />
        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
          <filter type="" />
WebSocketServerServer.cs -> namespace WebSocketServer.AppServer & public class WebSocketServerServer : WebSocketServer<WebSocketServerSession>
WebSocketServerSession.cs -> WebSocketServer.AppServer & public class WebSocketServerSession : WebSocketSession<WebSocketServerSession>

What is wrong :(?
Apr 16, 2014 at 7:39 PM
Have you had any luck trying to get it to work on azure.. because im trying to do the samething?
Apr 19, 2014 at 1:02 PM
Of course yes.

Did you remote login the instance to check the logs?