Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 47
Registered: ‎12-03-2009
My Device: Bold 9650
My Carrier: Sprint
Accepted Solution

WEB.CONFIG for OTA Install (Error)

I am trying to set up a web.config file to recognize the correct MIME type for an OTA install of my blackberry app. The .jad file is in the correct directory but I get the message: "HTTP Error 500: Internal Server Error"

 

This is the info in the web.config on my Windows hosted site and this file is in the same folder "blackberryapp" as the .jad and expanded .cod files:

 

<configuration>

<system.webServer>

<staticContent>

<mimeMap fileExtension=".jad" mimeType="text/vnd.sun.j2me.app-descriptor" />

<mimeMap fileExtension=".jar" mimeType="application/java-archive" />

<mimeMap fileExtension=".cod" mimeType="application/vnd.rim.cod" />

</staticContent>

</system.webServer>

</configuration>

 

Has anyone seen this before? If I try to hit the .cod file the message prompts me to save the file but just errors on the .jad.

 

System config is Windows IIS 7.0 / PHP 5.x / ASP.Net 2.0/3.0/3.5

Developer
Posts: 47
Registered: ‎12-03-2009
My Device: Bold 9650
My Carrier: Sprint

Re: WEB.CONFIG for OTA Install (Error)

Can anyone offer any insight into this OTA install and web.config file?  I've done a lot of on-line research and can't seem to find anything different than what I have here.  This is a hosted web server and this file is currently in my blackberry app folder (on my site) with the cod file.  I get an error that states "HTTP Error 500: Internal Server Error" when I try to hit the *.jad file from my blackberry browser.

Developer
Posts: 47
Registered: ‎12-03-2009
My Device: Bold 9650
My Carrier: Sprint

Re: WEB.CONFIG for OTA Install (Error)

I was finally able to get this working using the following modifications to the web.config file:

 

<configuration>
  <system.webServer>
    <staticContent>
    <remove fileExtension=".jad" />
    <remove fileExtension=".cod" />
      <mimeMap fileExtension=".jad" mimeType="text/vnd.sun.j2me.app-descriptor" />
      <mimeMap fileExtension=".cod" mimeType="application/vnd.rim.cod" />
    </staticContent>
  </system.webServer>
</configuration>

 

This is in the same folder as the blackberry *.jad and *.cod files on a hosted Windows IIS7 server.

 

Hope this helps someone else in the future.

Highlighted
Developer
Posts: 27
Registered: ‎09-04-2009
My Device: Not Specified

Re: WEB.CONFIG for OTA Install (Error)

i use the following in my .htaccess .. that does the job too

 

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType application/vnd.rim.cod cod