ASP.NET – The HTTP verb POST used to access path … is not allowed
Here’s my contribution to the search engine troubleshooter’s knowledge base.
I was trying to fire up an ASP.NET web service (.asmx) on my development machine after several months of not using it. I was getting the error:
“The HTTP verb POST used to access path ‘[my web service’s URL]’ is not allowed”.
I eliminated the problem by removing the mapping of ‘*’ to aspnet_isapi.dll in my IIS settings. I had introduced this while experimenting with URL Rewriting and Castle MonoRail.
Hope that helps someone!
Definitely helped me mate, that exactly what I have occuring too!
Cheers
Nelson
June 14th, 2007 at 10:22 am
It just solved the problem.
The best and simplest answer between hundreds, many given by “experts”.
Thanks!
August 21st, 2007 at 10:06 am
Using win 2000 there is no aspnet_isapi.dll. Any ideas?
thanks,
Leon
December 16th, 2007 at 5:31 am
thanks mate, I had the same problem.
removed the * mapping from the Dirctory(tab)>configuration(button)>Mapping(tab).
and everything works fine(except the url rewriter, but i dont mind).
March 25th, 2008 at 2:09 am
That worked! Tons of crap higher on google of no help at all. I inherited a machine and that setting was the problem. Thanks!
November 17th, 2008 at 7:23 pm
how to send a email by using asp.net using html script pls send sample code for this problem
December 1st, 2008 at 5:50 am
Hi,
I am getting the same error with my webservice, and most surprisingly it has started coming coming only from today! My application is built in ASP.NET 2.0. This is created as project, not as website. So, how can I make any change in the ISAPI? Please help…
Regards,
Niladri
March 9th, 2009 at 6:39 am
Great! this solved my problem.
March 9th, 2009 at 8:18 am
Excellent thanks very much for posting this. I was struggling and searching on the net for an hour before I came across this article.
April 3rd, 2009 at 4:43 am
Thanks! Solved my problem!
July 1st, 2009 at 2:40 pm
I see that everyone fix thier errors but i’m new to asp and my code was woking fine all of a suden this http verb post…….path not allowed in stuck and really need help anyone if you wouldn’t mind step by step how to fix the problem cause i went to my web config and removed those verb=”*” post=””…. by the my code still does not work please need anyone’s help asp presenting on thursday thank you
September 8th, 2009 at 6:20 pm
i am having the same problem but need step by step explination on how to solve please anyone asp. i’m presenting this thursday so any help would greatly appr…… i deleted the verb=”*” by web config but nothing has changed please need help
September 8th, 2009 at 6:28 pm
Thanks Mate, IT WORKED!
Cheers
March 23rd, 2010 at 10:05 pm
Thank you so much for this, saved hours of tryign to figure out why the hell this is happening!
August 2nd, 2010 at 6:15 am
I have the same problem with Linkbutton and I solved the problem by redirect the web page in the code behind, see below.
Pricing Strategy Matrix Reference Guide
Private Sub lnkReferenceGuide_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkReferenceGuide.Click
Response.Redirect(“~/Documents/PriceStratRefGuide.doc”)
Me.GroupMLOTables.Visible = True
End Sub
July 26th, 2012 at 3:58 pm