locked
why cant I view asp.net 2.0 pages on mobile phones? RRS feed

  • Question

  • User1045988754 posted

    Greetings,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    I have a problem, I cant view normal(NOT mobile web) .net 2.0 pages on some mobile phones(entry and mid-level sony-ericsson and nokia),  and the message Something is wrong with the page you tried to access is displayed<o:p></o:p>

    I can however view both classic asp and .net 1.1 pages with ease.<o:p></o:p>

    Can anybody help? <o:p></o:p>

    Regards,Olafur<o:p></o:p>

     

    Monday, November 6, 2006 7:24 AM

All replies

  • User907266268 posted

    Olafur,

    Do you have access to verify that it is in fact the server returning the message?  The reason I ask is that it sounds like a browser-based message which could indicate an inability to connect in the first place.  If you can verify that the server logs show the request then the next step is to check the event logs to see if there was an error on the server side.  It is possible that the application is attempting to send content which the mobile browser doesn't recognize.

    Desktop emulators have also been pretty handy to debug these situations because you can trace the conversation going on.  Check out the Openwave SDK as a starting point.

    Cheers,
    Colin

    Monday, November 6, 2006 12:08 PM
  • User2026204247 posted

    Hi!

    I think you have a problem with default page definiton.

    In VS 2003 

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

    In VS2005 

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

    Try to change this.

    May be help.

    Best Regards.

    Vasy. 

    [:D]
    Monday, November 6, 2006 5:54 PM
  • User664499748 posted

    Olafur, just to clarify - running ASP.Net 2.0 on mobile devices is an unsupported scenario and will not work for complex controls and pages which rely on javascript.

     Thanks, Kashif

    Thursday, November 9, 2006 3:19 PM
  • User1045988754 posted

    thanks for the replys,

    The page is practically empty with no controls as you can see below and the code-behind page has just an empty page_load.

    it renders fine on the opera mini browser but when using the internal browser, it fails(tested on Nokia 6230i and SE k750i)

    Olafur

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Mobile.aspx.cs" Inherits="Mobile" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
         asp.net 2.0 test page
        </div>
        </form>
    </body>
    </html>
     

    Monday, November 13, 2006 6:56 AM
  • User1045988754 posted

    an update, It seems that changing 

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

     to

     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

     fixed the problem on the sony-ericsson but the nokia still fails:s

    Monday, November 13, 2006 7:27 AM