tags:

views:

1479

answers:

4
+1  Q: 

.Net WebDAV Server

Hi all, I am looking to implement a WebDAV server in ASP.Net. the app will be deployed to IIS 6. I have seen a few frameworks that provide this functionality, but I can't seem to identify how they're able to accomplish it without (apparently) modifying IIS settings.

My specific question is how do I configure IIS and ASP.Net so that a IHttpModule/IHttpHandler might have an opportunity to handle any of the additional WebDAV verbs (i.e. LOCK, OPTIONS, PROFIND, etc.)

+2  A: 

I would take a look at this project http://sourceforge.net/projects/webdav/ for a webdav implementation in C#. If you must build your own it is nice to reference a completed one; even better if you can reuse it.

Yes, you will need to modify IIS6 settings to support binding the ISAPI module for .NET to all request types and not checking if a file exists. There is no other way to do this on IIS6 because web dev clients on windows will do an OPTIONS request on the root (/) of the website when checking for webdav support.

II7 gives you more options...

Ira Miller
A: 

check out Kooboo CMS and see how they implement the webdav.

http://www.kooboo.com/documents/detail/WebDAV

A: 

Here is how to configure each IIS version:

IIS 7:

Can be configured fully via web.config. Here is the example: http://www.webdavsystem.com/server/documentation/hosting_iis_asp_net/webconfig_example

IIS 6:

To create application map right click on your web application in IIS 6 MMC console and go to Properties->Virtual Directory Tab->Configuration. Click 'Insert' to add new wildcard map.

Executable - \Microsoft.NET\Framework\<.Net Framework Version>\aspnet_isapi.dll

Verify that file exists - Unchecked

IIS 5.1:

To create application map right click on your web application in IIS 5 MMC console and go to Properties->Virtual Directory Tab->Configuration. Click 'Add' to add new application extension mapping.

Executable - \Microsoft.NET\Framework\<.Net Framework Version>\aspnet_isapi.dll

Extension - .*

Verbs – All verbs

Verify that file exists – Unchecked

Here is the full description for each IIS version: http://www.webdavsystem.com/server/documentation/hosting_iis_asp_net/creating_webdav_iis7