Deploying BlackBerry Application

Discussion in 'Hosting Services / Control Panel' started by andregio, Oct 18, 2012.

  1. Hello,
    In order to deploy a BlackBerry application I need to publish some .cod, .jad and .jar files, and set specific MIME Types so the phone will "understand" that the application needs to be installed. Mime types are:
    • .cod files: application/vnd.rim.cod
    • .jad files: text/vnd.sun.j2me.app-descriptor
    • .jar files (optional): application/java-archive

    I created a "BlackBerry" directory and upload the .cod, .jar and .jad files. Then in Control Panel I configured the mime type for .jad files. Since .cod files already have a default Mime Type at server level, it cannot be added as a Custom one, and it must be defined at application level. So I added it to my .Net application Web.config file, like this:
    Code:
    <configuration>
    ...
    <system.webServer>
    ...
    <staticContent>
            <mimeMap fileExtension=".cod" mimeType="application/vnd.rim.cod" />
            <mimeMap fileExtension=".jad" mimeType="text/vnd.sun.j2me.app-descriptor" />
            <mimeMap fileExtension=".jar" mimeType="application/java-archive" />
        </staticContent>
    </system.webServer>
    ...
    </configuration>
    But, when I try to download the .jad file (http://mywebsite.web123.discountasp.net/BlackBerry/file.jad), I get a 500 error, with only the text: "The page cannot be displayed because an internal server error has occurred."

    Is there anything wrong with this configuration? Am I missing something?

    Thanks in advance

    Regards
     

Share This Page