« Previous Next »

Thread: WebDAV on IIS 6.0 and RTF files

Last post 07-30-2009 1:07 PM by robmcm. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 07-10-2009, 7:31 AM

    • sheich
    • Not Ranked
    • Joined on 03-13-2009, 2:02 PM
    • Posts 3

    WebDAV on IIS 6.0 and RTF files

    I have enabled WebDAV on my web server working under IIS 6.0, created virtual directiry (application) under web site (authorization type Anonymous (IUSR_***) was choosen). Server located in DMZ but I can open all files from this my web share from internal computers without problem. I can copy, delete etc files. I can edit .doc, .xls, .ppt files. A problem is that I always getting error messages "File was not saved" when I try to save .rtf files - although in reality all changes saved. I got no erros when I edit other types office documents.

    What may be a reason?

  • 07-14-2009, 2:16 PM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 6:28 PM
    • Redmond
    • Posts 215

    Re: WebDAV on IIS 6.0 and RTF files

    One thing you might check is if you have a MimeMap set for the .rtf files (just a hunch).  It could be that WebDAV is trying to add one and then returning an error (but not failing to PUT the file properly). 

    Can you take a network sniff and give us what HTTP message is failing?

    Dave

  • 07-15-2009, 3:09 AM In reply to

    • sheich
    • Not Ranked
    • Joined on 03-13-2009, 2:02 PM
    • Posts 3

    Re: WebDAV on IIS 6.0 and RTF files

    Hello, I have checked out my MIME types list (on entire Web server level). There was .rtf file type in list with "application/rtf" type. I tried to change it on "application/doc" but without success. Additionally I tried to add new MIME type on web site level - the same results.

    Here is  few lines from my web site log (when I open and save rtf file):

     2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 401 2 2148074254
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 401 1 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 WEB\dmsuser 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc/1.rtf - 8080 WEB\dmsuser 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 WEB\dmsuser 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 401 2 2148074254
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 LOCK /doc/1.rtf - 8080 - 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 401 1 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 LOCK /doc/1.rtf - 8080 WEB\dmsuser 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 200 0 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 401 1 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 GET /doc/1.rtf - 8080 WEB\dmsuser 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 200 0 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 WEB\dmsuser 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 401 2 2148074254
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 401 1 0
    2009-07-15 06:50:43 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 WEB\dmsuser 192.168.213.40 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 0
    2009-07-15 06:51:10 W3SVC702119511 172.16.16.2 PUT /doc/1.rtf - 8080 - 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 401 1 0
    2009-07-15 06:51:10 W3SVC702119511 172.16.16.2 PUT /doc/1.rtf - 8080 WEB\dmsuser 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 500 0 0
    2009-07-15 06:51:12 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 401 2 2148074254
    2009-07-15 06:51:12 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 - 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 401 1 0
    2009-07-15 06:51:12 W3SVC702119511 172.16.16.2 PROPFIND /doc - 8080 WEB\dmsuser 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 207 0 0
    2009-07-15 06:51:15 W3SVC702119511 172.16.16.2 UNLOCK /doc/1.rtf - 8080 WEB\dmsuser 192.168.213.40 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 204 0 0
     

    We can see that from IIS side it looks without errors. So here is problem with client side. Right?

    Where?

     

    P.S. On station with Windows Vista/Office 2007 there is no problem with rtf files saving.

  • 07-30-2009, 1:07 PM In reply to

    • robmcm
    • Top 50 Contributor
    • Joined on 05-26-2006, 9:05 PM
    • Redmond, WA
    • Posts 125

    Re: WebDAV on IIS 6.0 and RTF files

    There are two PUT commands for the document: the first fails with an HTTP 401.1 "Access Denied", this is normal and just means that your client needed to authenticate, which it presumably does for the second request that appears to fail with an HTTP 500. When the HTTP 500 error happens, what does the event viewer logs say?

    Robert McMurray (MSFT, IIS)
Page 1 of 1 (4 items)
Microsoft Communities