Click to See Complete Forum and Search --> : HELP! Adding Mimes on Godaddy - web.config XML file


unkellsam
01-30-2010, 05:10 AM
I have been very frustrated with this - I am trying to start a podcast using itunes' enhanced podcast format, which is basically an .m4a file with some metadata that includes track splits and pictures.

I have a windows hosting server on godaddy running IIS 7.0 and it does not include a mime for the .m4a extension. When trying to open the .m4a file in the web browser, it returns a "page not found" error, even though the file is clearly there.

I did some research and found that I have to add the mimes manually through a Web.config file. I attempted to do this and all of the pages in my hosting account returned a new error:

"The page cannot be displayed because an internal server error has occurred."

This is what my web.config file looks like:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<system.webServer>

<staticContent>
<mimeMap fileExtension=".m4a" mimeType="audio/x-m4a" />
<mimeMap fileExtension=".m4v" mimeType="video/m4v" />
</staticContent>

</system.webServer>

</configuration>


Ive also tried using "system.web" instead of "system.webServer"


Here is a link to the RSS feed:

http://SamVahedi.com/podcast/podcast.xml

The link to "episode one" points to a file that is on the server, yet the server does not recognize it.

I am almost certain I am doing something wrong in the web.config file. One forum user mentioned that he solved a similar problem by updating applicationHost.config, but there were no details on what should be done. Any help would be appreciated.