Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Product version: |
EPiServer CMS 5 R2 SP1 |
---|---|
Document version: |
1.1 |
Document last saved: |
WebDAV is an extension of HTTP that allows for extended file handling. Moving from the readonly-internet that first emerged into a read and write enabled Web creates new needs. WebDAV meets those needs and provides a base for developers to extend the functionality of a site and its ease of use for an editor or administrator. In EPiServer CMS it is used to give easy access to files (such as Word documents, images, etc).
For more information on what WebDAV is, please visit www.WebDAV.org.
IMPORTANT! There are several issues and configuration parameters that may require modification for the built-in WebDAV clients in Windows to work properly with EPiServer CMS. Read the section Client Configuration carefully.
This opens up possibilities for developers to create their own add-ins with extended file handling capabilities. You could for instance develop:
In a future release, the APIs for writing custom extensions to the WebDAV module will be exposed and documented. If you have urgent needs to develop solutions based on WebDAV, please contact EPiServer's support department.
Please Note the configuration examples below are for IIS6 - for IIS7 examples see the technical note Changes between IIS6 and IIS7.
'Edit web.config and make sure it contains the sections outlined below (note that WebFolder is simply a suggested default, you may change this to another name).
<configSections>
<sectionGroup name="episerverModules">
<section name="webDav"
allowDefinition="MachineToApplication"
allowLocation="false"
type="EPiServer.WebDav.Config, EPiServer.WebDav" />
</sectionGroup>
</configSections>
<episerverModules>
<webDav name="WebFolder">
<provider
name="Global files"
type="EPiServer.WebDav.Provider.VirtualDirectoryProvider,
EPiServer.WebDav"
virtualPath="~/Global/" />
</webDav>
</episerverModules>
<system.web>
<httpModules>
<add name="WebDav" type="EPiServer.WebDav.Module, EPiServer.WebDav" />
</httpModules>
</system.web>
<system.web>
<httpModules>
<add name="WebDav" type="EPiServer.WebDav.Module, EPiServer.WebDav" />
</httpModules>
<httpHandlers>
<add path="*" verb="OPTIONS,PROPFIND" type="EPiServer.WebDav.Handler, EPiServer.WebDav"/>
</httpHandlers>
</system.web>
<location path="WebFolder">
<system.web>
<httpHandlers>
<add path="*" verb="*" type="EPiServer.WebDav.Handler, EPiServer.WebDav"/>
</httpHandlers>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<httpModules>
<add name="BasicAuthentication" type="EPiServer.Security.BasicAuthentication, EPiServer" />
</httpModules>
These instructions assume that you are running EPiServer on IIS7 under "Integrated Pipeline Mode" which is the default mode for an IIS7 EPiServer installation. If you have changed your installation to run under "Classic Mode" instead, you should follow the IIS 6 configuration instructions instead.
Edit web.config and make sure it contains the sections outlined below (note that WebFolder is simply a suggested default, you may change this to another name).
<configSections>
<sectionGroup name="episerverModules">
<section name="webDav"
allowDefinition="MachineToApplication"
allowLocation="false"
type="EPiServer.WebDav.Config, EPiServer.WebDav" />
</sectionGroup>
</configSections>
<episerverModules>
<webDav name="WebFolder">
<provider
name="Global files"
type="EPiServer.WebDav.Provider.VirtualDirectoryProvider,
EPiServer.WebDav"
virtualPath="~/Global/" />
</webDav>
</episerverModules>
<system.webServer>
<modules>
<add name="UrlRewriteModule" type="EPiServer.Web.UrlRewriteModule, EPiServer" preCondition="managedHandler" />
<add name="WebDav" type="EPiServer.WebDav.Module, EPiServer.WebDav" preCondition="managedHandler" />
</httpModules>
</system.webServer>
<system.webServer>
<handlers>
<add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
<add name="PROPFINDVerbHandler" path="*" verb="PROPFIND" type="EPiServer.WebDav.Handler, EPiServer.WebDav" resourceType="Unspecified" requireAccess="None" allowPathInfo="true" preCondition="" responseBufferLimit="4194304" />
</handlers>
</system.webServer>
<location path="WebFolder">
<system.webServer>
<handlers>
<add name="wildcard" path="*" verb="*" type="EPiServer.WebDav.Handler, EPiServer.WebDav" />
</Handlers>
</system.webServer>
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<system.webServer>
<modules>
<add name="WebDav" type="EPiServer.WebDav.Module, EPiServer.WebDav" preCondition="managedHandler" />
<add name="BasicAuthentication" type="EPiServer.Security.BasicAuthentication, EPiServer" preCondition="managedHandler" />
</modules>
</system.webServer>
If you are experiencing problems connecting to an EPiServer CMS 5 WebDAV folder from a Windows computer, please make sure you have updated the WebFolder software to the latest version. The WebFolder update can be downloaded from http://www.microsoft.com/downloads/details.aspx?FamilyID=17c36612-632e-4c04-9382-987622ed1d64&DisplayLang=en
Note: You may have to enable Basic Authentication handling for your WebDAV client in order to logon to an EPiServer CMS 5 WebFolder.
See Microsoft Knowledge Base article 841215 (http://support.microsoft.com/kb/841215) for information on how to do this in Windows.
If the site is configured to use Windows Authentication the previous steps should not be needed.
Note: If you are using Windows Vista or Windows 2003 Server as a WebDAV client, you need to disable locking support for these clients since the EPiServer implementation of WebDAV does not yet support locking.To disable locking, follow these steps:
Perform the following steps to map a drive to a WebDAV share:
Note: The Windows WebDAV client has a number of issues and you may experience problems while using the shared folder. Therefore, you may want to look into using a different client program, such as NetDrive (see below).
Note: The information in this section is only applicable if you are having problems with the built-in Windows WebDAV support. If not, there's no need to install and use NetDrive.
This section describes how to use EPiServer CMS 5 WebDAV features from a third-party client, in this case exemplified with NetDrive.
NetDrive is a third-party WebDAV client that is more WebDAV-compliant than the built-in Windows client. Download the program from http://www.freewarereview.info/pub/netdrive.exe and install it with the default options.