Invalid mime-type

ASP.NET

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.

Thanks,
Thorsten

Similar Threads:

1.Decrypt Mime - s/mime Message

Hi

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

Thanks
Patrick


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 
below:

[System.Xml.Serialization.XmlSchemaProvider("MySchema")]
public class AnyTextData2 : AnyTextData, 
System.Xml.Serialization.IXmlSerializable
{
    public AnyTextData2()
    {
    }

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

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

            //<xs:simpleContent>
            System.Xml.Schema.XmlSchemaSimpleContent pSimpleContent = new 
System.Xml.Schema.XmlSchemaSimpleContent();

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

            //<s:attribute name="Attribute" type="s:string" />
            System.Xml.Schema.XmlSchemaAttribute pAttribute = new 
System.Xml.Schema.XmlSchemaAttribute();
            pAttribute.Name = "Attribute";
            pAttribute.SchemaTypeName = new 
System.Xml.XmlQualifiedName("string");//"s:string"
            pExtension.Attributes.Add(pAttribute);

            pSimpleContent.Content = pExtension;

            pComplexType.ContentModel = pSimpleContent;

            pSchema.Items.Add(pComplexType);
            return pSchema;
        }
    }

} 


3.case 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

Hello,

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,

Michel


5.mime type

Hi
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
Regards

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 85 guest