私はそれを理解しました。ここで
は、IIS 7.5の重要な構成要素です:
- Windows認証/プロバイダーの下で - NTLMは
- ドメインユーザーがASHXハンドラ
を含むディレクトリへの書き込みアクセスを必要と交渉の上でなければなりませんでした
URL認可は、Webサーバー上の役割として有効になっていませんでした。私はそれを追加してからsystem.webServerの下にweb.configファイルでこれを立ち往生:
私のシステム全体を
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" users="*" verbs="GET,HEAD,POST,PUT,DELETE,DEBUG" />
</authorization>
</security>
は(私は少しそれをダウントリムますが、今のところ、それは動作します) .webServer要素は次のようになります。
<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<defaultDocument>
<files>
<clear />
<add value="default.aspx" />
</files>
</defaultDocument>
<handlers accessPolicy="Read, Write, Execute, Script">
<remove name="WebDAV" />
<remove name="SimpleHandlerFactory-Integrated-4.0" />
<remove name="SimpleHandlerFactory-Integrated" />
<add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Write" preCondition="integratedMode" />
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Write" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" users="*" verbs="GET,HEAD,POST,PUT,DELETE,DEBUG" />
</authorization>
</security>
</system.webServer>
これを行いました。
出典
2011-07-19 12:31:25
kmk
.net 3.5アプリケーション用のソリューション –