Hi,
I am having problems communicating with a web server. I am sending data to a URL and embedding data into the URL which will then be processed on the server appropiately. I am however battling to coomunicate with the server and a exception is thrown every time. I am communicating straight via Ethernet on a Netduino Plus. I have setup a static IP address for the device. Below is some details on the exception being throw as well as a code snippet on where I make the call. Any help will be highly appreciated
Debug extract:
Sending reading to the server ...
Device Network Address: 192.168.0.108
Server URI: "
http://DEVSERVER/WMW...robeReading=33"
#### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (1) ####
#### Message:
#### Microsoft.SPOT.Net.SocketNative::getaddrinfo [IP: 0000] ####
#### System.Net.Dns::GetHostEntry [IP: 0008] ####
#### System.Net.HttpWebRequest::EstablishConnection [IP: 00e1] ####
#### System.Net.HttpWebRequest::SubmitRequest [IP: 0013] ####
#### System.Net.HttpWebRequest::GetResponse [IP: 000c] ####
#### CSIR.WaterMonitoring.Netduino.WMServerComms::SendReading [IP: 00d9] ####
#### CSIR.WaterMonitoring.Netduino.WMProbeData::UpdateReading [IP: 0035] ####
#### CSIR.WaterMonitoring.Netduino.WMStart::Main [IP: 0120] ####
#### SocketException ErrorCode = 10060
#### SocketException ErrorCode = 10060
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
#### SocketException ErrorCode = 10060
#### SocketException ErrorCode = 10060
#### Exception System.Net.WebException - 0x00000000 (1) ####
#### Message: host not available
#### System.Net.HttpWebRequest::EstablishConnection [IP: 00f1] ####
#### System.Net.HttpWebRequest::SubmitRequest [IP: 0013] ####
#### System.Net.HttpWebRequest::GetResponse [IP: 000c] ####
#### CSIR.WaterMonitoring.Netduino.WMServerComms::SendReading [IP: 00d9] ####
#### CSIR.WaterMonitoring.Netduino.WMProbeData::UpdateReading [IP: 0035] ####
#### CSIR.WaterMonitoring.Netduino.WMStart::Main [IP: 0120] ####
A first chance exception of type 'System.Net.WebException' occurred in System.Http.dll
#### Exception System.Net.WebException - 0x00000000 (1) ####
#### Message:
#### System.Net.HttpWebRequest::GetResponse [IP: 00d3] ####
#### CSIR.WaterMonitoring.Netduino.WMServerComms::SendReading [IP: 00d9] ####
#### CSIR.WaterMonitoring.Netduino.WMProbeData::UpdateReading [IP: 0035] ####
#### CSIR.WaterMonitoring.Netduino.WMStart::Main [IP: 0120] ####
A first chance exception of type 'System.Net.WebException' occurred in System.Http.dll
The code:
// Send the request to the server
webRequest = (HttpWebRequest)WebRequest.Create(webServerUri);
webRequest.Method = "GET";
webResponse = (HttpWebResponse)webRequest.GetResponse();