关于HTTP POST IIS ASP .NET错误HTTP 405

编程入门 行业动态 更新时间:2024-10-22 04:46:59
本文介绍了关于HTTP POST IIS ASP .NET错误HTTP 405的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在从另一个,外部应用程序引用的Web应用程序。外部应用程序试图做一个 POST 在 VDIR 打开时。在这一点上,我得到一个HTTP 405错误:

I'm working on a web application that is referenced from another, external application. The external application tries to do a POST on the vdir when opening. At this point, I get an HTTP 405 Error:

HTTP错误405 - 用来访问本页面的HTTP动词是不允许的。  Internet信息服务(IIS)

HTTP Error 405 - The HTTP verb used to access this page is not allowed. Internet Information Services (IIS)

我查了一下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.

任何想法?

推荐答案
  • 确保你包括在后URL的网页文件名(HTTP://yoursite/app/Page.aspx而不是的http:// yoursite /应用)
  • 您可能需要明确允许的帖子送到你的网页的文件类型。请参见这里如何做到这一点在IIS中的说明。 (这些说明是针对IIS 6对于IIS 7干脆去处理程序映射,单击编辑相应的条目,点击请求限制按钮,然后转到动词标签。​​)

  • Make sure you are including the web page file name in the post URL (yoursite/app/Page.aspx instead of 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.)

更多推荐

关于HTTP POST IIS ASP .NET错误HTTP 405

本文发布于:2023-10-11 23:15:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483112.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   IIS   POST   HTTP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!