Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

sjr84

Member Since 13 Sep 2011
Offline Last Active Nov 23 2011 12:14 PM
-----

Posts I've Made

In Topic: Netduino Firmware v4.2.0 RC3 (all editions)

24 October 2011 - 08:14 PM

There appears to be an issue with HttpWebRequest in this new firmware. I've reduced my code to the simplest test case of making the request and trying to get the response, but it seems to freeze on getting the response (pressing pause in Visual Studio shows that the execution never gets past that line.

public static void Main()
{
    Debug.Print(Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()[0].IPAddress);
    HttpWebRequest request = HttpWebRequest.Create("http://example.com") as HttpWebRequest;
    Debug.Print("Request created");
    WebResponse response = request.GetResponse();
}
Any ideas? It also used to freeze on the previous RC's but only if unplugging the network cable, and then re-plugging it back in (or dropping the connection some other way). As a note it works fine in the emulator, so assume its an issue with the firmware.

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.