Iis – Getting HTTP Error 500 with IIS 7.5 for a specific webdav subdirectory

iiswebdavwindows-server-2008-r2

I have the following configuration.

Some Websites in IIS one of them with a virtual directory.
This virtual directory is configured as webdav which is fully functional without any problems.

This virtual directory has the following directory structure:

\webdav
    -dir1 (ok)
    -dir2 (ok)
    -dir3 (ok)
    -dir4 (ok)
    -dir5 (virtual directory)
        -dir1 (ok)
            -dir1 (ok)
            -dir2 (ok)
            -dir3 (ok)
            -dir4 (ok)
            -dir5 (HTTP Error 500)
        -dir2 (ok)
        -dir3 (ok)

Any directory is accessible without any problem except of dir5. If I try to acces this directory I get an HTTP error 500.
Here is what the IIS logfiles contains:

2013-01-08 21:17:03 W3SVC2 WEB XXX.XX.XXX.XXX PROPFIND /WebDav/dir5/dir1/dir5 - 443 - XXX.XX.XXX.XXX HTTP/1.1 Microsoft-WebDAV-MiniRedir/6.1.7601 - - www.example.com 500 50 183 1397 204 78

I can not explain me why I get this error for this directory.

Best Answer

The sc-win32-status code (the value after the HTTP return code) has a value of 50 which translates to "The request is not supported". This might be a Request Filtering issue on the directory.

If you have the Request Filtering feature enabled, open the IIS Manager, navigate to the directory and select "Request Filtering" from the feature pane. If there are any restrictions, you might be able to solve it by excluding webDAV requests from filtering:

appcmd set config /section:requestfiltering /fileExtensions.applyToWebDAV:false