欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

IIS7 Request format is unrecognized.

发布时间:2025/7/14 编程问答 64 豆豆
生活随笔 收集整理的这篇文章主要介绍了 IIS7 Request format is unrecognized. 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

早上同事在安装程序的时候一直报错让我帮忙查一下原因,最后发现是一个网站无法打开。错误报错如下:

 

 

错误1:The Web server is configured to not list the contents of thisdirectory.

 

解决办法:打开IIS控制台兵器启用Directory browsing

 

 

错误2Request format is unrecognized.

 

解决办法:

 

找到Web.config文件,增加下面的信息:

 

<configuration><system.web><webServices><protocols> <add name="HttpGet"/><add name="HttpPost"/> </protocols></webServices></system.web> </configuration>

 

原因:GET和 POST 在ASP.NET2.0或者之上的版本是默认Disabled,需要更改Web.config启用。


本文转自 lzf328 51CTO博客,原文链接:http://blog.51cto.com/lzf328/1044844



总结

以上是生活随笔为你收集整理的IIS7 Request format is unrecognized.的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。