Last post Feb 06, 2008 06:03 AM by hifni
May 21, 2007 02:39 AM|damianf|LINK
I have created a simple mobile web form on my website, however when I browse to it from my Nokia mobile phone, I get a message that says "File format unknown'. I have done a search but couldn't find any information specific to this error.
Any help would be much appreciated.
May 22, 2007 11:24 AM|SKT_01|LINK
If I search with Live Search:
http://search.live.com/results.aspx?q=nokia+%22file+format+unknown%22&mkt=de-de&FORM=LVCP&go.x=15&go.y=1 I get usefull answers to your question from the Nokia Developer Discussion Boards.
You are using Intenet Information Services? Which .NET Framework is installed? ASP.NET Mobile Controls render pages adaptive depending on the device which is requesting the page. Which Nokia phone and which mobile browser are you using and is this device
configured correctly on your server (IIS)? What mark up and content type sends the server to your phone? If mark up language and content type are not supported by the phone you will get the error "File format unknown".
May 22, 2007 10:26 PM|damianf|LINK
Thanks for the pointers. I have set up the following mime types on IIS (but it still doesnt work!):
.wmls - text/vnd.wap.wmlscript
.wml - text/vnd.wap.wml
.wmlc - application/vnd.wap.wmlc
.wmlsc - application/vnd.wap.wmlscriptc
.wbmp - image/vnd.wap.wbmp
.NET framework 2 is installed.
I am using a Mobile Web Form, which has these two lines of markup at the top:
The phone model is a Nokia 5300, not sure what the mobile browser is... it's whatever comes as standard on this phone.
Not sure how to configure this device for use on my server... pretty new to all this stuff! :)
May 23, 2007 02:34 AM|SKT_01|LINK
I don't know what you are doing there.
The Nokia 5300 has a XHTML browser and you should know this if you begin developing for mobile devices. And what have your MIME Types configured on the server to do with ASP.NET Mobile Controls? Your pages have the extension aspx.
You should also know that what you call "mark up" are directives of a ASP.NET page and have nothing to do with mark up languages like WML or XHTML.
What I tried to tell you was that if the content type which the server sends to the phone is not accepted by the browser or your server doesn't process the page correctly you will get an error message like
File format unknown.
If the .NET Framework 2.0 is installed you should not get a File-format-unknown-error with the Nokia 5300. You should test if your Mobile Web Form runs within a web browser without errors.
Jun 06, 2007 02:18 AM|irtizaur|LINK
you should add a content type to your page directives. try ContentType="text/html". Hope it will help u....
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Mobile.aspx.cs" Inherits="Mobile" ContentType="text/html" %>
don't forget to mark as answer if it helps you.....
Jan 01, 2008 01:19 AM|smithafebin|LINK
It worked fine after giving contentype="text/html" as given in aspx page header.
Jan 01, 2008 01:26 AM|smithafebin|LINK
Set contettype="text/html" in page directive.
Feb 06, 2008 06:03 AM|hifni|LINK
I am getting the same problem, but after following your tip every thing was ok. Session variable and http request does not work in mobile phone, a solution from your side is appreciated. Thanks.