Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, May 1, 2015 10:33 AM
Dear friends,
I am working with IIS 7.0 and have an ASP.NET website that is working well.
I can browse the pages in the browser and it seems to be configured fine.
I need to POST some data to a page in this application from outside the browser by creating an HTTP POST request.
I am getting a 405 Method Not Allowed Error.
The page is a simple HTML page named with .aspx extension
SimpleFile.aspx
<html>
<body>
<p>Hello</p>
</body>
</html>
Here is what I have tried so far:
a) First I tried to POST directly to this page and got the 405 Method Not Allowed Error
b) I tried to create a virtual directory with read, write, execute permissions
c) I went to the "Handler Mappings" options
there are two handlers associated with the .aspx Extension:
i) PageHandlerFactory-Integrated
ii) PageHandlerFactory-ISAPI-2.0
I checked the "Request Restrictions" --> VERBS --> POST is there
d) I have a web.config file in the directory with the following:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Execute, Script">
<remove name="PageHandlerFactory-Integrated" />
<add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
</handlers>
</system.webServer>
</configuration>
Currently there are other applications accessing this directory
All replies (1)
Monday, May 4, 2015 3:40 AM âś…Answered
Hi,
I suggest that you can check other handlers like webdav, ExtensionlessUrlHandler-ISAPI-4.0_64bit. In addition, we can enable Failed request tracing to troubleshoot more detailed messages.