« Previous Next »

Answered Thread: Can't publish newly created files from local IIS6/FPSE site to remote IIS7/WebDAV site

Last post 09-17-2009 12:18 PM by dpellenwood. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 09-15-2009, 1:49 PM

    • dpellenwood
    • Not Ranked
    • Joined on 09-15-2009, 1:22 PM
    • Minneapolis, MN
    • Posts 4

    Can't publish newly created files from local IIS6/FPSE site to remote IIS7/WebDAV site

    We have a development server setup with IIS6 and FrontPage Server Extensions.  We also have a brand new production server running IIS7 and would like to avoid using FPSE on the new server.  Instead, I have setup WebDAV and for the most part things are working.  However, there is one issue I can't seem to resolve.

    When I try to publish a file that I create on the development server (IIS6 & FPSE) to the production server (IIS7 & WebDAV), the publish appears to work correctly, but immediately the published file disappears from the remote file list.  In fact, it never gets created on/copied to the production server.  A check of the HTTP logs on the production server shows the PUT command returns a 201 response as if the file is created just fine even though the file is most certainly not there.  Publish logs from our editor state the command completed successfully with no warnings or errors.

    Additional notes:

    • File type doesn't appear to matter.  Regardless of if it is a htm, css, asp, php or txt file it won't publish.
    • I can publish changes to files that already exist in both directions.
    • I can delete files in both directions
    • I can create a new file on the production server and publish it down to the dev server.
    • I'm using MS SharePoint Designer 2007 (Expression Web) as the editor and publishing tool.

    Anyone run into a similar issue?  Is there a setting I'm missing in a configuration file somewhere? Any things I can try to diagnose this further?

    Thanks for the help!

    DaveE

  • 09-15-2009, 2:07 PM In reply to

    Re: Can't publish newly created files from local IIS6/FPSE site to remote IIS7/WebDAV site

    You can migrate the entire iis6 server to the IIS7 server in one step using Web Deployment Tool. You can read more about it here . If you have any questions or concerns about its migration abilities you can ask them here

    Hope this makes your migration smooth and easy.

  • 09-15-2009, 2:35 PM In reply to

    • dpellenwood
    • Not Ranked
    • Joined on 09-15-2009, 1:22 PM
    • Minneapolis, MN
    • Posts 4

    Re: Can't publish newly created files from local IIS6/FPSE site to remote IIS7/WebDAV site

    Sorry, I should have made that clear: upgrading the IIS6 server to IIS7 isn't a possibility right now. We can't upgrade at this point because of other software and dependancies in place on the server.

    Thanks for the thought, but it doesn't really address the issue specifically.

  • 09-17-2009, 10:41 AM In reply to

    • dpellenwood
    • Not Ranked
    • Joined on 09-15-2009, 1:22 PM
    • Minneapolis, MN
    • Posts 4

    Re: Can't publish newly created files from local IIS6/FPSE site to remote IIS7/WebDAV site

    I've narrowed this down to an issue between Rewrites and WebDAV.  It isn't an issue with WebDAV or IIS version, but the fact that I have WordPress setup for this site on the new server and have enabled pretty URL's using IIS7's rewrite module.  The web.config file for this site has the following code:

     
            <rewrite>
                <rules>
                    <rule name="wordpress" patternSyntax="Wildcard">
                        <match url="*" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>

     

    When I try to add a new file to the site via WebDAV it is executing the rewrite rule and writing the content of any file I publish to index.php, thus overwriting the content of index.php.

    I thought I had configured everything properly for these two extensions (WebDAV and Rewrites), but obviously there is a conflict here.  I would like to be able to modify my web.config files via WebDAV but at the same time, I would like WebDAV to NOT execute the Rewrite rules in my web.config files.

    I'm sure there is a proper way to write "Don't apply rewrites to WebDAV requests" in the applicationHost.config file (for all sites on the server) or in this specific site's web.config file, but I can't seem to figure it out.  Anyone know how to do that?

    Thanks!

    DaveE

  • 09-17-2009, 12:18 PM In reply to

    • dpellenwood
    • Not Ranked
    • Joined on 09-15-2009, 1:22 PM
    • Minneapolis, MN
    • Posts 4

    Answered Re: Can't publish newly created files from local IIS6/FPSE site to remote IIS7/WebDAV site

     After much digging, I found the answer in the URL Rewrites forum: http://forums.iis.net/p/1156748/1900005.aspx#1900005

    Adding a separate rule specific to WebDAV and stopping any additional rule processing worked.

                    <rule name="webDAV" stopProcessing="true">
                        <match url=".*" />
                        <conditions>
                            <add input="{DAV}" pattern=".+" />
                        </conditions>
                    </rule>

Page 1 of 1 (5 items)
Microsoft Communities