in

ASP.NET Weblogs

rbfigueira.net

All about .net stuff, Compact framework, framework.net and personal projects.

August 2003 - Posts

  • PocketPc Emulator + Connecting to LocalHost (big problem)

    Ok, this is not the right place to put his but perhaps anyone can help me… I am around this to long days…

    I am developing one application (Pocket PC), using my laptop, and i am using the (Pocket Pc Emulator) to do the tests.

    I have to use/read one xml file that are on my own machine server (localhost).
    That file will be on Internet BUT i want to simulate using my local server (localhost), avoiding connecting to web.

    How can i configure the emulator to connect to my server (localhost) ?

    I have read this article (Using the Emulator in Smart Device Projects):
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/grfusingemulatorinsmartdeviceprojects.asp

    I have made all steps but did not work... perhaps i am doing something wrong...

    I am running the emulator on the same machine (my Laptop - acer aspire) with vs.net 2003 and perhaps my configuration (Connections) is wrong.

    The problem is that i can’t view my webpages that are stored on my machine server (localhost). Like I said I have to use some files stored on my machine server (localhost) on one application that i am doing with compact Framework. That files will be on Internet BUT i want to simulate using my local server (localhost), avoiding connecting to web.

    My Laptop settings:
    Pc name: laptop
    Connect Internet: Dial-up Connections (phone line)


    I have made this:
    ++++++++++++++++++

    To configure Pocket PC 2002 or Pocket PC 2000 with no proxy server

    Click Start on the emulator, click Settings, click the Connections tab, and then click Network Adapters.
    Under Adapters installed, click DC21X4 Ethernet Driver, and then click Properties.
    Click Use specific IP address, and then enter 192.168.0.2 in the IP address box, and 255.255.255.0 in Subnet mask box.


    To install the Microsoft Loopback Adapter in Microsoft Windows 2000

    In Windows Control Panel, double-click Add/Remove Hardware, and then click Next.
    Click Add/Troubleshoot a device, and then click Next.
    In the Devices list, click Add a new device, and then click Next.
    Select No, I want to select the hardware from a list, and then click Next.
    In the Hardware types list, click Network adapters, and then click Next.
    In the Manufacturers list, click Microsoft.
    In the Network Adapter list, click Microsoft Loopback Adapter, and then click Next.
    Click Next, and then click Finish.
    ++++++++++++++++++

    I have tried without the Loopback Adapter because my Laptop have a Network adapters (Realtek RTL8139(A)-based PCI Fast Ethernet Adapter) BUT did not work !! :(

    I have tried this on the emulator (Pocket IE):

    http://laptop/mypage.aspx

    The page you are looking for cannot be found

    http://127.0.0.1/mypage.aspx

    Trouble connecting
    Unable to connect with current settings. To change your connection settings, tab settings.
    [ok] [settings]

    I have tried many ways and ... not work!!

    After some hours…

    I tried to view, with the emulator, some Internet pages, and i recived this error message:

    Trouble connecting
    Unable to connect with current settings. To change your connection settings, tab settings.
    [ok] [settings]

    Somethink is wrong!! I went to my PDA (Toshiba e330) and tried to connect to Internet and ... this work fine. I went to connections of my PDA and see that he has using one proxy ?!?! I haven’t put anything there? The proxy is "pbtproxy01" ???!!

    Note: My browser (Internet Explorer) doesn’t have any proxy on there!!!

    Ok, lets change the Emulator settings...

    I have put that proxy on the connection settings and ... i can see Internet pages from Pocket Pc Emulator ;)
    Great... now lets try this links (Pocket IE):

    *** connecting to internet (on-line) ****

    http://laptop/mypage.aspx

    error:
    Unknown host
    Description: Unable to locate the server named "laptop" --- the server
    does not have a DSN entry. Perhaps there is a misspelling in the server name,
    or the server no longer exists.
    Double-check the name an try again.

    http://localhost/mypage.aspx

    error:
    The page you are looking for cannot be found


    http://127.0.0.1/mypage.aspx

    error:
    Internal error - server connection terminated
    Description: Internal error - server connection terminated


    ******************************************

    *** NOT connecting to internet (off-line) ****

    http://laptop/mypage.aspx

    error:
    The page you are looking for cannot be found


    http://127.0.0.1/mypage.aspx
    or
    http://localhost/mypage.aspx

    error:
    The page you are looking for cannot be found

    ******************************************

    Note: I have Test that pages connected to the normal Internet Explorer and then all work fine.

    When i am connection to Internet i received some different error that point to some solutions...
    When i NOT connected to Internet i received only the message that "The page you are looking for cannot be found". Note that I want to work off-line!

    Why i did not received the same messages????

    Using my IP did not work, also :(

    Here is my settings:

    +++++++++++++++++

    [ ping laptop ]

    Pinging laptop [169.254.25.129] with 32 bytes of data:
    Reply from 169.254.25.129: bytes=32 time<10ms TTL=128
    Reply from 169.254.25.129: bytes=32 time<10ms TTL=128
    Reply from 169.254.25.129: bytes=32 time<10ms TTL=128
    Reply from 169.254.25.129: bytes=32 time<10ms TTL=128

    Ping statistics for 169.254.25.129:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms


    [ ipconfig ]

    Windows 2000 IP Configuration

    Ethernet adapter Local Area Connection 2:

    Connection-specific DNS Suffix . :
    Autoconfiguration IP Address. . . : 169.254.25.129
    Subnet Mask . . . . . . . . . . . : 255.255.0.0
    Default Gateway . . . . . . . . . :

    Ethernet adapter Local Area Connection:

    Media State . . . . . . . . . . . : Cable Disconnected


    [ Computer settings - Network ]

    Full computer name: laptop.
    workgroup: WORKGROUP

    +++++++++++++++++++

    When i do this on my Internet explorer browser:

    http://laptop/mypage.aspx (laptop is my computer name)

    It work fine !


    http://169.254.25.129/mypage.aspx (this ip is the "ping" of my computer name).

    Don’t work like "laptop"...it will force to connect to Internet ... if i do "connect" it will connect to Internet.


    On my pocket pc emulator nothing work.... what a hell !!

    The first weird think is that i don’t use any proxy to connect to Internet and on my PDA (Toshiba e330) i went to connections and see that he has using one proxy "pbtproxy01" ???!! If i remove that from my device i will not connect to Internet.
    I only can connect to internet using the emulator if i put that proxy... but i cant connect to my local machine server ....

    Other weird think is that i have made "ipconfig" and get the network IP address. The IP address did work on (Pocket IE or on Internet Explorer browser).

    I have a bad connection (phone line) and it is not practical ($$$$) to do all tests connection to Internet!!

    Anyone knows what is wrong???

    What can i do? Any idea?

  • Pocket[search for a name] (Compact Framework Pocket Pc aggregator)

    I have posted on Saturday, June 21, 2003 (PocketRss (Compact Framework Pocket Pc aggregator)) about one project that I would love that all guys here participated. It will be the first Compact Framework Pocket Pc aggregator and it will be Open Source ;)

    It will be an RSS/RDF news aggregator that runs on the Pocket PC 2002/3 PDA's. You can read news, blog entries, or any other type of syndicated data, sync it wirelessly or read it offline. 

    I have started building one Pocket Pc aggregator with .NET Compact Framework and have giving the name PocketRss BUT I have to change that name !!!

    There is one Pocket Pc aggregator with that name (not made with CF):
    http://www.happyjackroad.com/AtomicDB/pocketpc/pocketRSS/pocketRSS.asp
    (Note: This app is not free).

    I have thinking, for the new name, PocketNews!
    What you guys think?
    Any suggestion ?

    There is other Pocket Pc aggregator (PockedFeed) but is not made with compact framework. You can see in this link: http://www.furrygoat.com/Software/PocketFeed/index.html
    Note: This Pre-Alpha 0.6 version not support Proxy Authentication
    It´s a great app ;) I use it and it's Free !!

    The releases of my project will be post on GotDotNet Workspace:
    http://www.gotdotnet.com/community/workspaces/workspace.aspx?id=f1470873-2d53-4edc-9e02-38d5dee1126b

    The news and the screenshots will be post on my weblog, here! ;)

    Cheers ;)

  • Unable to connect to the remote server - (compact Framework)

    I am creating one Pocket PC application and i have one problem ... i work with one firewall !

    I have created the pocket PC app on my local machine (using VS.Net 2003).
    When I run it in debug mode (using the Pocket PC 2002 emulator), and click on a button which calls that part, the following error message appears:

    "Unable to connect to the remote server "

    I get this error one the line (11):

    Line 10 : HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(_url);
    Line 11 : WebResponse resp = wr.GetResponse();
    Line 12 : Stream stream = resp.GetResponseStream();

    Do I need to set the internet setting on the emulator?
    Any thoughts guys?

  • Free HTMLViewer control (Pocket PC)

    On my last Post (HTML Rendered for the compact framework (Pocket PC)) I was trying to find one Free component (Compact Framework) for Rendering HTML content.

    Rob Zekt have put this great link http://www.opennetcf.org ;P

    I have download the OpenNETCF.org Windows.Forms Library Open-Source Project, that include the following controls:

    • Button (unfinished)
    • Clipboard
    • GroupBox
    • HTMLViewer
    • LinkLabel

    http://www.opennetcf.org/forms.asp

    Now, I am trying to use the HTMLViewer control but ....
    Anyone use this Control ? Can anyone put here one simple example how to use it ?

    Note: I've been trying, but I cannot get the control to display on the form.

    Thanks ;)

More Posts