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



相关文章
|
Web App开发 .NET 应用服务中间件
Beyond Apache: ModSecurity for IIS/Nginx is Coming
The Trustwave SpiderLabs Research Team is proud to announce that, through a collaboration with ...
920 0
|
数据安全/隐私保护
iis7.5+win2008 出现 HTTP Error 503. The service is unavailable.
解决: 应用程序池启动32位应用程序 设置托管管道为集成   (仍然有问题)   试试以下方法: http://phpwind.me/1222.html 楼主  发表于: 2011-11-26 图片:123.
1200 0
|
1月前
|
JavaScript Windows
VUE部署到IIS中报404错误解决方案-配置URL重写
VUE部署到IIS中报404错误解决方案-配置URL重写
|
4月前
|
Windows
IIS配置MIME类型
IIS配置MIME类型
|
11月前
|
开发框架 .NET Shell
安装与配置IIS
安装与配置IIS
196 0
安装与配置IIS
|
网络安全
IIS配置FTP
IIS配置FTP过程
235 0
IIS配置FTP
|
Windows
Win10的IIS服务器详细安装与配置
Win10的IIS服务器详细安装与配置
769 0
Win10的IIS服务器详细安装与配置
|
XML 开发框架 缓存
优化IIS7.5支持10万个同时请求的配置方法
优化IIS7.5支持10万个同时请求的配置方法
216 0
|
安全 小程序 数据库
【牛刀小试】——IIS配置
【牛刀小试】——IIS配置
138 0
【牛刀小试】——IIS配置
|
存储 网络安全 数据安全/隐私保护
SSL 数字证书-IIS 证书配置部署|学习笔记
快速学习 SSL 数字证书-IIS 证书配置部署
160 0