Skip to content Skip to sidebar Skip to footer

The Http Verb Post Used To Access Path '/test.html' Is Not Allowed

Below is my code:

Solution 1:

Are you using any URL rewriting? (http://forums.asp.net/t/953470.aspx)

In the webserver, is POST allowed for HTML files? Try changing the extension to .ASPX or .PHP

Solution 2:

I found this post while working on my first Facebook app, so this may or may not be related to your underlying issue...but I was getting this same error.

While a Canvas URL value has to end in "/", the Tabl URL can be a fully qualified page (e.g. http://[DOMAIN/DIRECTORY-PATH]/Default.aspx).

I'm working locally, so http://localhost:4604/Main/Default.aspx worked for me.

HttpGet, HttpPost protocols do not appear to be required in the web.config (although this fix still worked with them in there).

Solution 3:

The first that comes to mind is permissions.

What version of IIS ? By default IIS6 prevents a post to a HTML file.

Solution 4:

This sounds like the directive is used in your (supposedly) Apache web server? You would need to check the httpd.conf for this directive and make sure that POST is allowed to be called on your file.

Nevertheless does it seem a little odd to POST on a static html file or is mod_rewrite being used to confuse people?

Solution 5:

The default for this error is that the POST verb is turned off at the configuration for the server. Is this happening in Cassini or in IIS? In IIS this behavior can be controlled. Also you may want to make sure that the proper handlers are in your web.config if you are still having issues after looking at the IIS configuration (if this ends up being web service related):

<system.web><webServices><protocols><addname="HttpGet"/><addname="HttpPost"/>

Post a Comment for "The Http Verb Post Used To Access Path '/test.html' Is Not Allowed"