Re: How to configure windows ce 4.2 device's web server

From: John Spaith [MS] (jspaith_at_ONLINE.microsoft.com)
Date: 01/12/05


Date: Wed, 12 Jan 2005 12:44:17 -0800

Don't apologize for asking questions - I'm happy to help. You definitely
need the OEM to add ASP capabalities to your device. When they rebuild your
ROM, the Windows CE Build System will automatically detect all the
underlying features that ASP needs that the web server doesn't (like COM)
and bring them in. You need to let your OEM know whether you want JScript,
VBScript, or both. ASP doesn't bring either of these in automatically in
the build system, but you need at least one to be able to do anything. I'd
recommend only JScript and no VBscript.

The Web Server as provided by Microsoft does not have server-side Java
capabilities. It's possible that a 3rd party has added this support, though
I've never heard anyone ask for this and for most peolpe ASP is good enough.

I'm at a total loss for why you need a 'services load' to start the web
server rather than it just working on bootup. Do you have a debug copy of
the image, or could you get your OEM to at least give you a debug version of
httpd.dll and services.exe? If you could turn on full debugzones for these
components on bootup and give me what comes up on your PB Debug screen I'd
have much better luck understanding this.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcepb40/html/_wcepb_Registering_Debug_Zones.asp
has info about setting default debugzones for components, which you'd need
since services.exe is started so soon on bootup you wouldn't have time to
change it manually. In particular I think you want, on your XP (not CE)
registry

HKEY_CURRENT_USER\Pegasus\Zones
Httpd.dll = dword:0xffff
services.exe = dword:0xffff

-- 
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation
Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights 
reserved.
"Jean" <Jean@discussions.microsoft.com> wrote in message 
news:9A0C07DC-EB9E-4D61-A8CC-050F5FA56DC3@microsoft.com...
> When I said the web server componet, I mean httpd.dll.   This is the only
> file I found on my CE device.   Is this means that I am missing other
> components for the web server?  I already know the asp is not implemented 
> on
> the device.   Now we are asking our OEM for help.   In order to build an 
> ASP
> server application, what else do I need to be included in my device? 
> Sorry
> to ask so many questions.   Since I am new to windows ce and web server,
> until now I am still very confused.
>
> Any help will be very appreciated.
>
> Thanks.
>
> Jean
>
> "Jean" wrote:
>
>> I also found out that the OEM device only contained1 web server 
>> component -- 
>> HTTPD.   So right now it does not support ASP pages.   What should I go 
>> from
>> here? Do I need to ask our OEM to rebuild the platform for us or I can 
>> use
>> other method -- such as java?
>>
>> Best Regards,
>>
>> Jean
>>
>> "Jean" wrote:
>>
>> > After I check the windows\www directory, it is empty.   Typing the 
>> > services
>> > list command also gave me a empty list.   Then I typed in services load
>> > HTTPD.   Now the web server is up and running.
>> >
>> > How to make the server up and running during the device boot up ?
>> >
>> > Thanks
>> >
>> > Jean
>> >
>> > "John Spaith [MS]" wrote:
>> >
>> > > Hmm... everything sounds right.  I'm not sure why this isn't working.
>> > >
>> > > Try checking out \windows\www\current-httpd.log (or something like 
>> > > that) to
>> > > see if the web server was even loaded in the first place.  There may 
>> > > also be
>> > > error messages explaining what went wrong if it's not up and running. 
>> > > From
>> > > a target control window in Platform Builder, you can try 's 
>> > > services -d
>> > > list' to see which services on the device are running.  You try 's
>> > > services -d load HTTPD' to try and load web server if it's not up 
>> > > already.
>> > > Let me know how this works and what log info, if any, you have.
>> > >
>> > > As far as adding components to a CE image after the fact if you're 
>> > > not an
>> > > OEM -- I believe it is possible for some components.  The web server 
>> > > and the
>> > > underlying core networking functionality, however, are things that 
>> > > only
>> > > OEM's can add.
>> > >
>> > > -- 
>> > > John Spaith
>> > > Software Design Engineer, Windows CE
>> > > Microsoft Corporation
>> > >
>> > > Check out the new CE Networking Team Blog at 
>> > > http://blogs.msdn.com/cenet/.
>> > >
>> > > This posting is provided "AS IS" with no warranties, and confers no 
>> > > rights.
>> > > You assume all risk for your use. © 2003 Microsoft Corporation. All 
>> > > rights
>> > > reserved.
>> > >
>> > > "Jean" <Jean@discussions.microsoft.com> wrote in message
>> > > news:C2C001A6-B45F-4E95-B494-C84D66E44F14@microsoft.com...
>> > > > Hi,
>> > > >
>> > > > Our OEM already build the ce device for us. And it includes 
>> > > > httpd.dll on
>> > > > its
>> > > > image. When I am using the remote process view to debug the device, 
>> > > > the
>> > > > httpd.dll does not running when the device is turned on. How to 
>> > > > start the
>> > > > web
>> > > > server running and configure it? Can someone give me a hint on 
>> > > > where I can
>> > > > find the information?
>> > > > Thanks.
>> > > >
>> > > > Jean
>> > > >
>> > > > You should have registry settings that look something like this to 
>> > > > get the
>> > > > web server started at boot:
>> > > > [HKEY_LOCAL_MACHINE\Services\HTTPD]
>> > > >  "Context"=dword:1
>> > > >  "FriendlyName"="World Wide Web Publishing"
>> > > >   "Dll"="HTTPD.DLL"
>> > > >   "Order"=dword:8
>> > > >   "Keep"=dword:1
>> > > >   "Prefix"="HTP"
>> > > >   "Index"=dword:0
>> > > >
>> > > > If this isn't present, your web server won't start and in fact 
>> > > > can't be
>> > > > loaded after the fact either.
>> > > >
>> > > > If you have follow up questions, please post them to the newsgroup
>> > > > microsoft.public.windowsce.platbuilder and copy the thread we've 
>> > > > had so
>> > > > far
>> > > > into it.  Doing this means other customers may be able to give you 
>> > > > their
>> > > > feedback and future people can benefit from our conversation.  I 
>> > > > check
>> > > > this
>> > > > group daily.
>> > > >
>> > > > John
>> > > >
>> > > > Above is the feedback I got from John.   I checked my registry 
>> > > > today,
>> > > > [HKEY_LOCAL_MACHINE\Services\HTTPD is setup as John mentioned. 
>> > > > But after
>> > > > reboot the device, the server still not seems to be running.
>> > > >
>> > > > My registry setting for [HKEY_LOCAL_MACHINE\Comm\HTTPD is as below:
>> > > > Default   (value not set)
>> > > > DirBrowse   1
>> > > > DefaultPage  default.asp
>> > > > Basic  1
>> > > > IsEnabled  1
>> > > > AdminUsers  jchi
>> > > > MaxLogSize  32768
>> > > > LogFileDirectory  \windows\www
>> > > > NTLM 1
>> > > >
>> > > > Can anyone help?   Also, in case I found out that some of the web 
>> > > > server
>> > > > components are missing, can I add them into the existing device? 
>> > > > If yes,
>> > > > how?
>> > > >
>> > > > Thanks.
>> > >
>> > >
>> > > 


Relevant Pages

  • Re: How to configure windows ce 4.2 devices web server
    ... If the OEM overwrote this launch key to launch another app, ... You definitely> need the OEM to add ASP capabalities to your device. ... the Windows CE Build System will automatically detect all the> underlying features that ASP needs that the web server doesn't > and bring them in. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to configure windows ce 4.2 devices web server
    ... I am now waiting for my device manufacturer to add the missing components ... Jean ... I already know the asp is not implemented ... Since I am new to windows ce and web server, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to configure windows ce 4.2 devices web server
    ... When I said the web server componet, ... In order to build an ASP ... "Jean" wrote: ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to configure windows ce 4.2 devices web server
    ... > When I said the web server componet, ... I already know the asp is not implemented ... Now we are asking our OEM for help. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: HOWTO Send an email to a Web Server.
    ... Email is handled with a totally different protocol than a web page ... (HTTP), so no, you cannot "send email to a web server / ASP page" because ... It is possible for a web server / ASP page to use ANOTHER component to ...
    (microsoft.public.inetserver.iis)