1.

Solve : Web.Config Help?

Answer» HELLO all,

I have to enable my webhost to allow .7z mime types in a IIS 7.0 setup, Windows Server.

This is what I have so far in the web.config FILE:
Code: [Select]<?xml version="1.0" encoding="utf-8" ?>

<configuration>

    <system.webServer>

        <staticContent>
            <mimeMap fileExtension=".7z" application/x-7z-compressed." />
     </staticContent>

    </system.webServer>

</configuration>
 but when I UPLOAD it to the server root directory I get this error (all over the site):
Code: [Select]500 - Internal server error.
There is a problem with the RESOURCE you are looking for, and it cannot be displayed.

Any good advice would be much appreciated.You're missing something in your declaration.  I have no experience with your server type or whatever you're doing, but you have ".7z" application/x-7z-compressed."

Notice unmatched quotation MARKS.  And why is there a period in there?  You're missing an attribute declaration or something, plus a quotation mark.

-rock


Discussion

No Comment Found