.Net WebDAV Server

后端 未结 3 1200
梦谈多话
梦谈多话 2020-12-24 04:08

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 i

相关标签:
3条回答
  • 2020-12-24 04:33

    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...

    0 讨论(0)
  • 2020-12-24 04:36

    There is no way to configure WebDAV verbs in IIS 6 without modifying IIS settings. It is possible only with IIS 7 and later.

    To handle all verbs required by WebDAV in IIS 6 you will need to create an application wildacrd 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

    enter image description here

    On Home Directory tab of your application properties set Execute permissions to Scripts only and allow reads.

    Here is the web.config example: http://www.webdavsystem.com/server/prev/v2/documentation/hosting_iis_asp_net/webconfig_example

    Please note that this web.config example was specifically created and tested with ASP.NET 2.0 on IIS 6 on Server 2003 and IIS 5.1 on XP. It does not handle &, %, + and trailing dots (.).

    ASP.NET 4.x provides means for handling any special characters in your WebDAV server, configuring web.config, including &, % and '.'. The web.config that supports IIS versions 6-8 is generated by IT Hit WebDAV Server Engine Wizard.

    0 讨论(0)
  • 2020-12-24 04:45

    Check out Geoff Lane's articles on WebDAV:

    • http://www.zorched.net/2006/01/20/aspnet-web-application-without-aspx-extension/ - shows configuration of verbs in IIS and HttpModule setup.
    • http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/
    • http://www.zorched.net/2006/03/01/more-webdav-tips-tricks-and-bugs/
    0 讨论(0)
提交回复
热议问题