I use jquery uploader, which works fine when running the app from the server. But when I try to Delete an uploaded file to a remote server, which submits the form with "DELETE" as Method to an ashx file that I have implemented. Firebug reveals that the 开发者_如何学Crequest did hit the server, but 403 Forbidden was served. I have a break point in the Delete segment of the code, and it is never hit (as expected.)
Given that, I suspect that there must be some .NET configuration that I have to do to make it work. When running the app from a browser on the same server works fine, so I am guessing it maybe permission. Any help, please?
You need to allow the verb, example below:
<httpHandlers>
<add name="SimpleHandlerFactory-Integrated" path="*.ashx"
verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory"
resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
</httpHandlers>
ref: Enabling The PUT Verb with Handlers and IIS 7.0
精彩评论