Iis Post Error 405
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
Iis 405 Method Not Allowed Post
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join 405 method not allowed put the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes 405 - http verb used to access this page is not allowed iis 8 a minute: Sign up HTTP 405 on Error on HTTP POST IIS ASP .NET up vote 1 down vote favorite I'm working on a web application that is referenced from another, external application. The external application tries to do a POST
Iis Enable Post
on the vdir when opening. At this point, I get an HTTP 405 Error: HTTP Error 405 - The HTTP verb used to access this page is not allowed. Internet Information Services (IIS) I checked the IIS event logs and I see that the external application tries to post, but I can't change permissions for a directory, since I need an extension. Any ideas? asp.net http iis share|improve this question edited May 15 '14 at 21:36 arserbin3 3,92162441 asked Jul 7 '11
Iis 405 Error
at 21:11 user472875 1,34232050 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted Make sure you are including the web page file name in the post URL (http://yoursite/app/Page.aspx instead of http://yoursite/app) You may need to explicitly allow POSTs to the file type of your web page. See here for instructions of how to do it in IIS. (Those instructions are for IIS 6. For IIS 7 simply go to Handler Mappings, click Edit for the appropriate entry, click the Request Restrictions button, then go to the Verbs tab.) share|improve this answer answered Jul 7 '11 at 21:25 Keith 11.6k84281 This solution worked, so I guess I'll give that to you. My question was a little different though. I was wondering if there is a way to allow a post on the vdir itself. For example, let's say instead of the default.aspx I want to test another page, I would have to change the external link every time... –user472875 Jul 8 '11 at 14:44 To http-post to a directory you can convert the directory to an application (in IIS Manager, right-click the directory and select Convert To Application). Not sure if there's any better way. –Keith Jul 8 '11 at 16:36 add a comment| up vote 2 down vote Do you have a default document in the virtual directory that you are posting to? IIS will not allow POST commands to a folder, b
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http 405 method not allowed site About Us Learn more about Stack Overflow the company Business Learn more
405 Method Not Allowed Web Api
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss iis 7.5 detailed error - 405.0 - method not allowed Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “405 method not http://stackoverflow.com/questions/6617210/http-405-on-error-on-http-post-iis-asp-net allowed” in IIS7.5 for “PUT” method up vote 50 down vote favorite 17 I use WebClient type to upload *.cab file to my server. On server side, I registered a HTTP handler for *.cab file with PUT method as below:
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://serverfault.com/questions/258399/how-to-tell-iis7-to-allow-post-to-a-text-file-to-solve-405 Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers not allowed are voted up and rise to the top How to tell IIS7 to allow POST to a text file (to solve 405)? up vote 4 down vote favorite If I want to allow HTTP POST to text files *.txt (i.e. I'm taking an example of what could be any static resource normally accessible by GET). The error is: Server Error 405 - HTTP verb used to access method not allowed this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access. How can I accomplish this? Background: I'm using apps.facebook.com to hit my hosted facebook app and facebook sends HTTP POST now through to the iFrame hosting my app. This facebook behaviour has been around for a while but it's being forced now. In turn this forces me to make stuff available to the POST verb. iis-7 httpverbs share|improve this question edited Apr 11 '11 at 17:19 asked Apr 11 '11 at 17:10 John K 7253916 add a comment| 4 Answers 4 active oldest votes up vote 1 down vote accepted I believe that IIS supports POSTs on most extension types. Are you using IIS7 or 7.5? I just tested with a .txt file in IIS7.5 and it handles a POST just fine. I would check in your applicationHost.config (c:\windows\system32\inetsrv), search for the section and check your StaticFile handler, or if you already have a handler for your extension type. The same may be set in your web.config file. Confirm that the verbs property allows for POST. share|improve this answer answered Apr 11 '