« Previous Next »

Thread: WebDAV doesn't allow Anonymous access

Last post 09-02-2009 4:53 AM by leonardo seccia. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 09-02-2008, 1:31 AM

    WebDAV doesn't allow Anonymous access

    Hi,

    My application makes a GET request and insert "Translate:F" into the header.

    HttpWebRequest request = HttpWebRequest.Create(url);

    request.Headers.Add("Translate: f");

    request.Credentials = CredentialCache.DefaultCredentials;

    Basic and Anonymous authentication are enabled.

    WebDAV is enabled, "Allow anonymous property queries" is set to true. Both "All Users" and "Anonymous Users" are given Read, Write and Source permissions to All content.

    This is excerpt from applicationHost.config:

        <location path="Default Web Site">
            <system.webServer>
                <webdav>
                    <authoring enabled="true">
                        <fileSystem allowHiddenFiles="true" />
                        <properties allowAnonymousPropfind="true" allowInfinitePropfindDepth="true" allowCustomProperties="true" />
                    </authoring>
                    <authoringRules>
                        <add users="*" path="*" access="Read, Write, Source" />
                        <add users="?" roles="" path="*" access="Read, Write, Source" />
                    </authoringRules>
                </webdav>
                <security>
                    <authentication>
                        <basicAuthentication enabled="true" />
                        <windowsAuthentication enabled="true" />
                        <anonymousAuthentication userName="IUSR" />
                    </authentication>
                </security>
            </system.webServer>
        </location>

     

    However I receive warning "WebDAVModule: Anonymous access Not Allowed"

    ModuleName WebDAVModule
    Data1 Anonymous Access Not Allowed
    Data2
    ErrorCode 0
    ErrorCode The operation completed successfully. (0x0)
     

    IIS7 is on Server2008. Is it possible to configure WebDAV for anonymous access? What am I missing?

  • 09-05-2008, 6:30 AM In reply to

    Re: WebDAV doesn't allow Anonymous access

    Please make sure "Allow anonymous property queries" option under webdav properties is enabled. Authenticated user is now required for DAV commands like PUT(upload). Please refer to the comment in below article:

  • Anonymous PROPFINDs are allowed for file listings, but file uploads require an authenticated user. This is a change from IIS 6.0, where anonymous file uploads could be enabled by opening up your security. In WebDAV for IIS 7.0 we changed this behavior so that all WebDAV activity would require authentication, but we allow for the use of anonymous PROPFINDs for backward-compatibility with some WebDAV clients. (More specifically, the PUT, MKCOL, PROPPATCH, COPY, MOVE, and DELETE verbs all require authentication.)
  • What's New for WebDAV and IIS 7.0
    http://learn.iis.net/page.aspx/360/what-is-new-for-webdav-and-iis-70/

    WenJun Zhang - MSFT
    Sincerely
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 09-08-2008, 8:05 PM In reply to

    Re: WebDAV doesn't allow Anonymous access

    Thanks, however "Allow anonymous property queries" is enabled (True) and even GET fails. Note: without "Translate: F" header, GET returns success.

  • 09-09-2008, 12:20 PM In reply to

    • eokim
    • Top 500 Contributor
    • Joined on 02-22-2008, 7:31 PM
    • Posts 24

    Re: WebDAV doesn't allow Anonymous access

    "GET with Translate: F" is WebDAV request which should be authenticated.

  • 09-01-2009, 6:55 AM In reply to

    Re: WebDAV doesn't allow Anonymous access

    Hello Jacob,

    Did you solve this problem? We are having a very similar issue and we cannot change the client...

    Thanks in advance.

    Leo  

  • 09-01-2009, 8:26 PM In reply to

    Re: WebDAV doesn't allow Anonymous access

    Hello Leo,

    In our case the missing bit was Windows Authentication. It was not enabled. After we enabled it and disabled Basic Authentication the problem was solved.

    Hope that helps,

    Jacob

     

  • 09-02-2009, 4:53 AM In reply to

    Re: WebDAV doesn't allow Anonymous access

    Thanks for your reply. Unfortunately we haven't got the same issue...
Page 1 of 1 (7 items)
Microsoft Communities