VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > temp > C#教程 >
  • C# 解决Get请求数据量过大时被拒绝访问

一: 在程序的web.config 中system.web 节点 里面插入
<httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151" />
二:在程序的web.config 中sconfiguration 节点 里面插入
复制代码
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" maxQueryString="2147483647"/>
</requestFiltering>
</security>
</system.webServer>
复制代码

这里主要是通过配置WebConfig,来提高程序的接受数据量大小。

如果不严谨可以将Get请求转为POST请求也可以解决。

出处:https://www.cnblogs.com/namelessblog/p/14122176.html



相关教程