SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old November 23rd, 2004, 02:37 PM
pompeyff pompeyff is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 pompeyff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question IIS returns HTML from default.aspx not WML

Sorry not sure if this should be in .NET Forum or here.

Using IIS 5.0 on Win2k I'm trying to get a simple .aspx file to return wml.

Here's the default.aspx file from my server:
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" Language="C#" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile"%>
<mobile:Form runat="server">
<mobile:Label runat="server">
Hello, world!
</mobile:Label>
</Mobile:Form>

I've set all the .wml mime types in IIS, and have .NET Frame work 1.1 installed. I've even tried explictly setting the mime type in the file like so:
<%@ Page
Inherits="System.Web.UI.MobileControls.MobilePage"
ContentType="text/vnd.wap.wml"
%>

Nothing seems to work, I always get back this html:
<html>
<head>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<p:card>
<p:do type="accept">
<p:noop/>
</p:do>
<p>Hello, world!</p>
</p:card>
</html>

So the page only works with phone/emulators which can use html (i.e. Openwave, Nokia 6320) but not with those that can't (i.e. http://www.wapsilon.com/ , Samsung X450).

Any help much appreciated.
Many thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > IIS returns HTML from default.aspx not WML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway