Using Azure Cloud Service Classic with WorkerRoles and ran into this error. I'm not sure what exactly is going on.
Message="System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
Server stack trace:
at System.String.Substring(Int32 startIndex, Int32 length)
at Microsoft.WindowsAzure.Plugins.RemoteForwarder.RdpRemoteEndpointFinder.GetRemoteEndpoint(Socket clientSocket, Stream peekBuffer)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.WindowsAzure.Plugins.RemoteForwarder.IRemoteEndpointFinder.GetRemoteEndpoint(Socket clientSocket, Stream peekBuffer)
at Microsoft.WindowsAzure.Plugins.RemoteForwarder.RemoteForwardingService.ClientConnected(Object sender, ConnectionEventArgs e)
at Microsoft.WindowsAzure.Plugins.RemoteForwarder.TcpSocketServer.OnClientConnected(ConnectionEventArgs e)"