405 Error


I was getting this "HTTP Error 405 - Method not allowed" error at work the other day and for the life of me, I could not figure out why I was getting that. I was sending a post through HttpWebRequest to a test web site and the web site was properly configured in IIS. As it turned out the url that I was using was not correct. I was using an url like this:

http://localhost/testSite/

I should have used a full url like this:

http://localhost/testSite/default.aspx

When sending a POST, you need to specify a page to post to. Lesson learned.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted @ Friday, January 16, 2009 7:51 PM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910