大的ViewState内容会导致HTTP错误504 - 网关超时吗? [英] Can big ViewState content result a HTTP Error 504 - Gateway timeout?

查看:183
本文介绍了大的ViewState内容会导致HTTP错误504 - 网关超时吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net页面似乎返回了一个非常大的内容(5,648,733字节,这是

I have one asp.net page which seems to return a very big content (5,648,733 bytes and that is

主要由VIEWSTATE消费)以504网关超时结束错误。我正在使用Fiddler跟踪http

mostly consumed by VIEWSTATE) ending with a 504 Gateway timeout error. I am tracking the http

请求/响应。

基本上,当我回发时相同的页面 - 通过单击按钮 - 回发失败,IE和FF中显示的错误:

And basically, when I post-back the same page -by clicking a button- the post-back fails with thoose errors shown in IE and in FF:


Internet Explorer无法显示网页 - > IE中的

在页面加载时,与服务器的连接重置为
。 - > 在FF

The connection to the server was reset while the page was loading. --> in FF

问题这可以是因为在VIEWSTATE中注入了大尺寸;如果是,主要的
原因是什么,以便它加载页面但不能在之后发回页面?

推荐答案

我想知道你是否正在点击 MaxRequestLength ;默认值为4MB。

I wonder if you are hitting the MaxRequestLength of the application; Default is 4MB.

这篇关于大的ViewState内容会导致HTTP错误504 - 网关超时吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆