为什么我的网页在我回发时挂起?
我正在开发一个 asp.net 网页,它显示来自 SQL 数据库的数据。
用户可以填写一个表格来更新数据。但是,该表单不是用任何 ASP.net 控件编写的。使用 jQuery $('#myform').submit()
提交表单。
我的开发 Web 服务器(VS 开发服务器,CASINI)上的此页面绝对没有问题。但是,当我将其推送到我的生产服务器场时,我的用户会间歇性出现回发无法正常工作的问题。
该页面始终加载以响应 GET 请求,但当用户提交表单时,它可能会工作,也可能不会工作。
当用户提交表单时,将发生以下四种情况之一。
1)表单提交并且一切正常 - 数据已更新。
2) 表单提交且服务器超时 - 数据未更新。
3) 表单提交,服务器返回空白页 - 数据未更新。
4) 表单提交,用户看到消息“Internet Exploder 无法显示该页面” - 数据未更新。
页面何时工作或不工作似乎没有规律或理由。唯一一致的是页面总是针对 GET 请求加载。
我的会话无法处理(对于服务器场)。
在任何情况下都不会返回任何有意义的错误消息。我应该从哪里开始寻找问题呢?
I'm working on an asp.net web page which displays data from a SQL database.
There is a form that the user can fill out to update the data. However, the form is not written with any ASP.net controls. The form is submitted using jQuery $('#myform').submit()
.
I have absolutely no problem with this page on my develpoment web server (VS development server, CASINI). However, when I push this out to my production server farm, my users have intermittent problems with the post back not working.
The page always loads in response to a GET request, but when a user submits the form, it may or may not work.
One of four things will happen when the user submits the form.
1) The form submits and everything works - the data is updated.
2) The form submits and the server times out - the data is not updated.
3) The form submits and the server returns a blank page - the data is not updated.
4) The form submits and the user sees the message "Internet Exploder cannot display the page" - the data is not updated.
There seems to be no rhyme or reason as to when the page does or does not work. The only consistent thing is that the page always loads for a GET request.
My session is out of process (for the server farm).
In no event is any meaningful error message returned. Where should I start looking for the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您可能会遇到网络超时或代码陷入无限循环的情况。要么对 DAL 进行单元测试,要么开始删除部分,直到找到问题为止。
Sounds like you could be getting a network timeout or code in an endless loop. Either unit test the DAL or start removing pieces until you find the problem.
您在这里讨论了许多不同的层(Jquery、ASP.NET,我假设 IIS 用于服务器场)。我会使用一些日志记录来检测您的问题所在的特定区域。
如果整个事情发生在您的开发计算机上,您可以使用 Fiddler 或 Firebug 来调试 HTTP 请求的问题。
You are talking about a number of different layers here (Jquery, ASP.NET and I assume IIS for the server farm). I would use some logging to detect in which specific area your problem is.
If the whole thing is happening on your development machine you could either use Fiddler or Firebug to debug the problem with your HTTP requests.