我试图导出一个GridView到Excel文件,这是从Access数据库,所以当我把这个内容在web.config文件。网站是在asp.net与VB作为后端代码。
<configuration>
<system.web>
<httpRuntime maxRequestLength="1048576" />
</system.web>
</configuration>
字符串
和
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
型
服务器错误
500 -内部服务器错误。您正在查找的资源有问题,无法显示。
2条答案
按热度按时间hmae6n7t1#
添加这段代码后,Web.config中的错误消失了
字符串
tkclm6bt2#
我认为在你的情况下,内部服务器错误正在发生,因为你给
maxrequestlength
太大的值。尝试给值-
2097151
,如果你试图设置更多500发生内部服务器错误.