"The RDP header is missing or not valid" error messages in the logs
-
25 Şubat 2012 Cumartesi 01:09
I have a simple MVC3 Web Role deployed to Azure.
I noticed that every minute I get this set of three error messages in the WADDiagnosticInfrastructureLogsTable:Cannot read data from the remote connection. Closing session...
The RDP header is missing or not valid.
Cannot locate remote endpoint. Closing remote socket...I am not connected through Remote Desktop or anything like that.
Any ideas where this could be coming from?
Aleksey
Tüm Yanıtlar
-
26 Şubat 2012 Pazar 18:15
In your service definition do you see imports for RDP something like this
<Imports>
<Import moduleName="RemoteAccess" />
<Import moduleName="RemoteForwarder" />
</Imports>
Also check what are the values in service configuration for RDP related setting. Just a wild guess, remote forwarder is enabled and not able to remoteaccess to the instances.
-
26 Şubat 2012 Pazar 21:02
Yes, I do have those modules, and remote desktop works fine.
What puzzles me is that I see those errors all the time, no matter if I use remote desktop or not.It does have something to do with the forwarder, though I currently have only one instance - nothing to forward here.
I caught another error message in the log table:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
at Microsoft.WindowsAzure.Plugins.RemoteForwarder.AsynchronousStreamConnector.<>c__DisplayClass2.<ConnectStreams>b__0(IAsyncResult readResult)This is definitely not coming from my code...
Aleksey
-
26 Şubat 2012 Pazar 23:27
Not sure but i think it should not impact your app anyways as those are WADDiagnosticInfrastructureLogsTable. Let us wait for somebody from Microsoft to comment on this.
-Sachin
-
06 Mart 2012 Salı 06:51
If you just wanna fix the problem and get the messages out of the diagnostic table, I think you can consider restarting remoteforwarderagent.exe and remoteaccessagent.exe.
If you are interested in finding out if there are remote connection attampts and where they come from, a network sniffer like network monitor should give you some idea--setup that on the VM and let it run for a while, then analyze the captured network traffic to see if there are rdp related packages there.
-Emma