ethernetJ11D issues in .Net micro framework 4.3


I am using Fez Spider I kit with ethernetJ11D module and trying to run following code with static IP. All the ip, gateway and dns are successfully assigned and every thing seems OK, but when go into the browser and enter the ip, port and event name “hello”, nothing shows up there.
Debugger shows following output.
The thread ‘’ (0x2) has exited with code 0 (0x0).
Using mainboard GHI Electronics FEZ Spider version 1.0
Program Started
Network is Up with following properties
Web server started at
IP Address:
Subnet Mask:
The thread ‘’ (0x3) has exited with code 0 (0x0).

using System;
using System.Net;
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 Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using System.Net.Sockets;
using Gadgeteer.Modules.GHIElectronics;
using Microsoft.SPOT.Net.NetworkInformation;

namespace CameraEthernet
    public partial class Program

        Gadgeteer.Networking.WebEvent hello;
        Gadgeteer.Networking.WebEvent takePicture;
        Gadgeteer.Networking.WebEvent seePicture;

        GT.Picture pic = null;

        // This method is run when the mainboard is powered up or reset.   
        void ProgramStarted()


            NetworkInterface[] networkInterfaces = NetworkInterface.GetAllNetworkInterfaces();
            // loop through each interface, assign an IP accordingly
            foreach (NetworkInterface ni in networkInterfaces)
                if (ni.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
                    ni.EnableStaticIP("" , "" , "");
                    ni.EnableStaticDns(new string[] { "" , "" });

            ethernetJ11D.NetworkUp += new GTM.Module.NetworkModule.NetworkEventHandler(ethernet_NetworkUp);
            ethernetJ11D.NetworkDown += new GTM.Module.NetworkModule.NetworkEventHandler(ethernet_NetworkDown);

            camera.PictureCaptured += new Camera.PictureCapturedEventHandler(camera_PictureCaptured);

            // Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
            Debug.Print("Program Started");


        void camera_PictureCaptured(Camera sender, GT.Picture picture)
            pic = picture;

        void ethernet_NetworkUp(GTM.Module.NetworkModule sender, GTM.Module.NetworkModule.NetworkState state)
            Debug.Print("Network is Up with following properties");
            Debug.Print("IP:" + ethernetJ11D.NetworkSettings.IPAddress.ToString());

            Gadgeteer.Networking.WebServer.StartLocalServer(ethernetJ11D.NetworkSettings.IPAddress , 80);

            foreach (string s in sender.NetworkSettings.DnsAddresses)
                Debug.Print("Dns:" + s);

            var NetworkSettings = ethernetJ11D.NetworkSettings;
            Debug.Print("IP Address: " + NetworkSettings.IPAddress);
            Debug.Print("Subnet Mask: " + NetworkSettings.SubnetMask);
            Debug.Print("Gateway: " + NetworkSettings.GatewayAddress);


            hello = Gadgeteer.Networking.WebServer.SetupWebEvent("hello");
            hello.WebEventReceived += new WebEvent.ReceivedWebEventHandler(hello_WebEventReceived);
            takePicture = Gadgeteer.Networking.WebServer.SetupWebEvent("takepicture");
            takePicture.WebEventReceived += new WebEvent.ReceivedWebEventHandler(takePicture_WebEventReceived);

            seePicture = Gadgeteer.Networking.WebServer.SetupWebEvent("seepicture");
            seePicture.WebEventReceived += new WebEvent.ReceivedWebEventHandler(seePicture_WebEventReceived);

        void ethernet_NetworkDown(GTM.Module.NetworkModule sender , GTM.Module.NetworkModule.NetworkState state)
            Debug.Print("Network Down");

        void seePicture_WebEventReceived(string path, WebServer.HttpMethod method, Responder responder)
           if (pic != null)

                responder.Respond("Take picture first");

        void takePicture_WebEventReceived(string path, WebServer.HttpMethod method, Responder responder)
            responder.Respond("Taking picture");

        void hello_WebEventReceived(string path, WebServer.HttpMethod method, Responder responder)
            Debug.Print("Hello world");
            responder.Respond("Hello world");