I have an error with the following code using the FEZ Spider:
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using GHI.Premium.System;
using GHI.Premium.USBHost;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
namespace GadgeteerApp2
{
public partial class Program
{
private static void HandleHttpRequest(GTM.GHIElectronics.HttpStream request, string requestedURL)
{
string action = "Unkown action";
if (requestedURL == "/index.html")
{
action = "Hello World";
}
else
{
action = "Unknown action";
}
request.Response.HeaderData["Content-type"] = "text/html; charset=utf-8";
request.Response.HeaderData["Connection"] = "close";
request.Response.HeaderData["Cache-Control"] = "no-cache";
request.Response.StatusCode = GTM.GHIElectronics.HttpResponse.ResponseStatus.OK;
request.Response.Send("<html><head><title>Webpage</title><META http-equiv=Content-Type content=\"text/html; charset=windows-1252\"></head><body>HELLO!</body></html>");
}
void wifi_RN171_HttpRequestReceived(GTM.GHIElectronics.HttpStream request)
{
string requestedURL = request.Request.URL;
if (requestedURL == "/index.html")
{
request.Response.HeaderData["Content-type"] = "text/html";
request.Response.HeaderData["Connection"] = "close";
request.Response.HeaderData["Cache-Control"] = "no-cache";
request.Response.StatusCode = GTM.GHIElectronics.HttpResponse.ResponseStatus.OK;
}
}
}
}
The Error comes in the Debug; here are the Debug statements in the Output.
Assembly: mscorlib (4.2.0.0)
Assembly: Microsoft.SPOT.Native (4.2.0.0)
Assembly: Microsoft.SPOT.Security.PKCS11 (4.2.0.0)
Assembly: System.Security (4.2.0.0)
Loading Deployment Assemblies.
Attaching deployed file.
Assembly: Gadgeteer.WebServer (2.42.0.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Net.Security (4.2.0.0) Attaching deployed file.
Assembly: GTM.GHIElectronics.UsbHost (1.1.2.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Net (4.2.0.0) Attaching deployed file.
Assembly: Gadgeteer.SPI (2.42.0.0) Attaching deployed file.
Assembly: GHI.Premium.IO (4.2.10.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1) Attaching deployed file.
Assembly: GHIElectronics.Gadgeteer.FEZSpider (1.1.2.0) Attaching deployed file.
Assembly: GTM.GHIElectronics.UsbClientSP (1.1.2.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0) Attaching deployed file.
Assembly: Gadgeteer.WebClient (2.42.0.0) Attaching deployed file.
Assembly: GHI.Premium.System (4.2.10.0) Attaching deployed file.
Assembly: System.Net.Security (4.2.0.0) Attaching deployed file.
Assembly: System (4.2.0.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Touch (4.2.0.0) Attaching deployed file.
Assembly: GadgeteerApp2 (1.0.0.0) Attaching deployed file.
Assembly: GHI.Premium.USBHost (4.2.10.0) Attaching deployed file.
Assembly: Gadgeteer.DaisyLink (2.42.0.0) Attaching deployed file.
Assembly: System.Http (4.2.0.0) Attaching deployed file.
Assembly: Gadgeteer.Serial (2.42.0.0) Attaching deployed file.
Assembly: GHI.Premium.Hardware (4.2.10.0) Attaching deployed file.
Assembly: GTM.GHIElectronics.WiFi_RN171 (1.0.2.0) Attaching deployed file.
Assembly: GTM.GHIElectronics.Display_TE35 (1.1.3.0) Attaching deployed file.
Assembly: Microsoft.SPOT.TinyCore (4.2.0.0) Attaching deployed file.
Assembly: System.IO (4.2.0.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Hardware (4.2.0.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Graphics (4.2.0.0) Attaching deployed file.
Assembly: Microsoft.SPOT.IO (4.2.0.0) Attaching deployed file.
Assembly: Gadgeteer (2.42.0.0) Resolving.
Resolve: unknown method: Gadgeteer.Modules.GHIElectronics.HttpResponse.Send
Error: ff000000
Waiting for debug commands…
Any ideas of what may be causing this error?