问题描述
我期待实现在ASP.Net WebDAV服务器。应用程序将被部署到IIS 6我已经看到,提供此功能的几个框架,但我似乎无法找出他们如何是能够完成它没有(明显)修改IIS设置。
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.
我的具体问题是如何配置IIS和ASP.Net,使一个IHttpModule的/ IHttpHandler的可能有机会处理任何额外的WebDAV的动词(即锁,OPTIONS,PROFIND等。 )
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.)
推荐答案
有没有办法在IIS中配置6 WebDAV谓词,而无需修改IIS设置。这是可能仅与IIS 7及更高版本。
There is no way to configure WebDAV verbs in IIS 6 without modifying IIS settings. It is possible only with IIS 7 and later.
要处理在IIS 6中的WebDAV所需要的所有动词,你需要创建一个应用程序wildacrd地图。右键点击IIS 6 MMC控制台您的Web应用程序并进入的属性的 - > 虚拟目录的选项卡 - > 配置的。点击插入的添加新的通配符映射
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.
- 可执行文件 - \Microsoft.NET\Framework\< ;净
Framework版本> \aspnet_isapi.dll - 确认文件是否存在 - 不选中
- Executable - \Microsoft.NET\Framework\<.NetFramework Version>\aspnet_isapi.dll
- Verify that file exists - Unchecked
在主目录的应用程序属性选项卡中设置的执行权限的到的脚本仅的,并允许读取。
On Home Directory tab of your application properties set Execute permissions to Scripts only and allow reads.
下面是在web.config例如:
Here is the web.config example: http://www.webdavsystem.com/server/prev/v2/documentation/hosting_iis_asp_net/webconfig_example
请注意,这web.config中的例子是专门创建和测试与IIS 6 ASP.NET 2.0服务器2003和XP上的IIS 5.1。它不处理与功放;,%,+和尾随点(。)。
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版提供了处理任何特殊字符在你的WebDAV服务器,的,包括与放大器;,%和'。'。由它击中的WebDAV服务器引擎向导。
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.
这篇关于净WebDAV服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!