Invalid mime-type


    Sponsored Links


  • 1. Validation Error (Mobile HTML): Element 'h1' is not supported...?
    Hi I am developing a .net mobile app on vs 2005; whenever I have a mobile web page, and try to add tags such as <h1> (which are valid xhtml), the designer gives the error: Validation Error (Mobile HTML): Element 'h1' is not supported and at run time the tags never get emitted.... Yet I need this functionality! How can I get this to work? Also what schema is it "validating" won't let me choose a schema from the drop down? I have googled extensively and found nothing.... Please help
  • 2. ICallbackEventHandler
    I made a page today that uses ICallbackEventHandler. I got to work, but with problems. 1. it is slow, it does not seem any faster than reloading the page. 2. the first time I fire the event it works fine, I get a result back from the server, but if I try to fire it again too soon it does not work. Q. am I supposed to be able to rebuild controls with ICallbackEventHandler? I have a table built at loading, am I supposed to be able to alter that table with ICallbackEventHandler?
  • 3. Force Download PocketIE and Mobile Browsers
    Hi All, I am writing an ASP.NET 2.0 Web Application that users can buy and download pictures, songs, etc. I have a page that servers as the download page that fetches the file to be downloaded from a physical path on my server,pops up the Save As dialog and using HTTP Response downloads the file. It works great off desktop IE, but when i try the same page from PocketIE it just fetches the image and displays it in IE. How can i make it popup the Save As dialog in PocketIE? any ideas or maybe another way that this could be reached? Here's the code i am using: if (!IsPostBack) { string SessionId = ""; SessionId = Request.QueryString["id"]; if (SessionId != "") { FileStream fs; string szFilePath = System.Configuration.ConfigurationManager.AppSettings["Path"]; string szFileName = GetFileName(SessionId); szFilePath = szFilePath + szFileName; fs = File.Open(szFilePath, FileMode.Open); byte[] byteBuffer = new byte[fs.Length]; fs.Read(byteBuffer, 0, (int)fs.Length); fs.Close(); Response.AddHeader("Content-disposition", "attachment; filename=" + szFileName); Response.ContentType = "application/octet-stream"; Response.BinaryWrite(byteBuffer); Response.End(); } } } } Thanks a lot for your help really appreciated Mustafa Rabie
  • 4. .Net Mobile Framework
    Where I can download .Net Mobile Framework to install in Windows 2003 Server? I didn find a version that works Any idea? Thanks Juan

Invalid mime-type

Postby info » Sat, 04 Oct 2003 23:55:25 GMT

Hi together,

I developed a Internet Application with Visual Studio .NET 2003
for mobile phones. The Application is running on Windows Server
2003 Web-Edition.

Now there's a problem. When I use the OpenWave Emulator
the page is displayed correctly. When I use my mobile phone
(Samsung SGH-S300M) then I'll get the error message

"Page could not be displayed. Invalid mime-type"

Could anyone tell me, where I could locate and resolve
the problem?

Thanks a lot,

Thorsten Huber

Invalid mime-type

Postby Alex » Sun, 05 Oct 2003 07:48:21 GMT

Please take a look to Thread "Problem with mime type" from
me, there are more Informations about the issue.


Similar Threads:

1.Decrypt Mime - s/mime Message


Does someone know how to decrypt mime messages? Is there a class in .net
that helps with that?


2.Schema type information provided by IXmlSerializable is invalid: Type 'string' is not declared

I've added the System.Xml.Serialization.XmlSchemaProvider attribute to my 
class to customize the schema. Some of the datatypes in my schema are 
strings, but I'm getting an error that string type is not declared.  Can 
anyone show me how to do this properly?  I've included the code to my schema 

public class AnyTextData2 : AnyTextData, 
    public AnyTextData2()

    public static System.Xml.XmlQualifiedName 
MySchema(System.Xml.Schema.XmlSchemaSet xs)
        System.Xml.Serialization.XmlSerializer schemaSerializer =
        System.Xml.Schema.XmlSchema s = AnyTextData2.Schema;
        xs.XmlResolver = new System.Xml.XmlUrlResolver();
        return new System.Xml.XmlQualifiedName("AnyTextData2");//, ns);
    private static System.Xml.Schema.XmlSchema Schema
            <s:complexType name="AnyTextData2">
            <s:extension base="s:string">
            <s:attribute name="Attribute" type="s:string" />
            System.Xml.Schema.XmlSchema pSchema = new 
            pSchema.ElementFormDefault = 

            //<s:complexType name="CData">
            System.Xml.Schema.XmlSchemaComplexType pComplexType = new 
            pComplexType.Name = "AnyTextData2";

            System.Xml.Schema.XmlSchemaSimpleContent pSimpleContent = new 

            //<s:extension base="s:string">
            System.Xml.Schema.XmlSchemaSimpleContentExtension pExtension = 
new System.Xml.Schema.XmlSchemaSimpleContentExtension();
            pExtension.BaseTypeName = new 

            //<s:attribute name="Attribute" type="s:string" />
            System.Xml.Schema.XmlSchemaAttribute pAttribute = new 
            pAttribute.Name = "Attribute";
            pAttribute.SchemaTypeName = new 

            pSimpleContent.Content = pExtension;

            pComplexType.ContentModel = pSimpleContent;

            return pSchema;

} type from string '' to type 'double' is invalid

It is very strange ~~ my tab control got Page1 & Page2, there is combox box
in Page2,
in combox 's selectedindexchanged ,
      For Each drInvChg In drInvInfo.GetChildRows("fk_invno")
            drInvChg.Item("exrate") = 1.0 <-- problem ??
      end for
Problem, when the form load , user click page2, THE above error will be
happend, I don't know what's wrong if it.
If I omit that line, eveyrthing goes fine. ??
Please help ~~~

4.Conversion from type DBNull to type String is invalid


When reading data from a SqlClient.SqlDataReader in VB.NET 2005, I want to 
display fiels that sometimes are empty.

sUser = CStr(rdUser("Name") & Space(1) & CStr(rdUser("First_Name")

When the First_Name of a user is empty, I get an error telling me type 
DBNull cannot be converted to String.
Is there a way of solving this problem?

Many thanks,


5.mime type

Could I Add mime type for specific content programaticaly
through .Net ?
Could I add any tag at web.config to do that
I do not want to that using IIS

6. MIME Types in .Net (urgent)

7. OT: MIME Types in .Net (urgent)

8. Problem with mime type

Return to ASP.NET


Who is online

Users browsing this forum: No registered users and 36 guest