Posted by tomcio 4 years 29 weeks ago
I did follow "web development guide" on this site to create simple/test mobile site. when i go to ready.mobi it has score 4 - few small things i have to change. Anyway when i try to use emulator on mtld.mobi (sony or nokia) i always see error : "the requested item could not be loaded!(Status code 502)"
Please explain why i see this and how to fix it ? BTW i tested it on few phones and works just fine, on pocket pc ok, on emulators like openwave ok - so why do i get this error on mtld.mobi (sony or nokia)




Posted by admin 4 years ago
Did the eumlator on ready.mobi give the same error? Sometimes the emulator can have trouble displaying a site that is OK. Can you post the URL and I'll take a look?
Ruadhan
Posted by tomcio 4 years ago
on ready.mobi both nokia & sony show same error, 3 other emulators works ok. URL is polonia.mobi
BTW i fixed all errors but one and my score is 4.84. The one i can not fix is MIME types if you could look at this too :)
Thank you for your help
Tom
Posted by flingu 4 years ago
On The Server:
Setup a MIME type on the .mobi site
extension .xhtml
content type application/xhtml+xml
You can find other MIME types and info here
http://www.developershome.com/wap/wapServerSetup/tutorial.asp?page=whatIsMIME
In the Code:
meta http-equiv="content-type" content="application/xhtml+xml"
Thanks,
Thanks, Joshua Mitchell President FlingU, llc http://www.flingu.comJoshua Mitchell
President FlingU, llc
http://www.flingu.com
Posted by tomcio 4 years ago
Here is what is going on
when i test page default.aspx i ALWAYS have error : incorrect or missin MIME types....
when i copy exactly the same code and save file as default.xhtml and test it no errors are found - so please tell me what else i have to do in order for aspx pages to test without any errors
BTW the .XHTML file works without any problems on all emulators .
here is a code (i removed "<" because code did note display on page. i placed it within code tag but still it was not visible):
UPDATE: i did test and all my aspx pages return Content-Type: text/vnd.wap.wml not application/xhtml+xml as i want -
HTTP/1.1 200 OK
Date: Fri, 02 Nov 2007 16:33:29 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/vnd.wap.wml; charset=utf-8
Content-Length: 1749
Posted by tomcio 4 years ago
I found solution. I removed this (from HEAD section of the page)
meta http-equiv="content-type" content="application/xhtml+xml"/>
and placed contenttype here:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" ContentType="application/xhtml+xml" %>
Posted by sleeplss2k 3 years ago
Thanks for posting your solutions.
Posted by sleeplss2k 3 years ago
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" ContentType="application/xhtml+xml" %>
So i added the content type, and now when i run the site on Firefox 3 to test, it returns the following error:
XML Parsing Error: XML or text declaration not at start of entity
Did anyone else run across this problem?
Posted by ruadhan 3 years ago
Mobile Champion
Try putting this as the very first line of your page:
dotMobi
Posted by kanagarajum 2 years ago
hai
I Developed Web Application . Now we are using that Application to mobile devices.
It will working fine.
But I tested This URL: http://emulator.mtld.mobi/emulator.php?webaddress=m.hogaming.info&emulator=nokiaN70&Submit=Submit
I got This Error :(sony or nokia) i always see error : "the requested item could not be loaded!(Status code 502)"
Then I fixed that error using This code
Old code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
New Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ContentType="text/html" %>
Posted by sasi.modala 1 year ago
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" ContentType="application/xhtml+xml" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Home</title> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> </head>Recently, I started creating a website for mobile devices. Above is the code. I have a question here.
When I open my page in IE 7, XML shows up on the browser where as Firefox is showing the HTML.
Can some one help me why IE7 is displaying XML and how to make it display HTML?