简体   繁体   English

等待操作超时。 .aspx

[英]The wait operation timed out. .aspx

I created an internal website for our company.我为我们公司创建了一个内部网站。 It run smoothly for several months and then I add more items to website.它顺利运行了几个月,然后我在网站上添加了更多项目。 When I run in live, it run normally.当我在现场运行时,它运行正常。 Then suddenly one of my user from another server sending me an "The Wait operation timed out."然后突然我的一个用户从另一台服务器向我发送“等待操作超时”。 error.错误。 When I check access that certain link, It run normally for me and some other who I ask to check if they access that page.当我检查访问该特定链接时,它会为我和其他一些我要求检查他们是否访问该页面的人正常运行。 I already increase the connection timeout but still no luck.我已经增加了连接超时,但仍然没有运气。 Is it the error come from another server?错误来自另一台服务器吗? Can someone explain the possible causes?有人可以解释可能的原因吗? This is how the another plant faced, every time they firstly open the website, error screen show up, but when they refresh it, they can use the website.另一家工厂就是这样,每次第一次打开网站,都会出现错误画面,但刷新后就可以使用网站了。 I dont know why this happened.我不知道为什么会这样。 I need your help.我需要你的帮助。 Down below is a error detail:下面是错误详细信息:

1.Exception Details: System.ComponentModel.Win32Exception: The wait operation timed out source error:An unhandled exception was generated during the execution of the current web request. 1.异常详细信息:System.ComponentModel.Win32Exception:等待操作超时源错误:在执行当前web请求期间产生了未处理的异常。

2.Information regarding the origin and location of the exception can be identified using the exception stack trace below. 2.有关异常来源和位置的信息可以使用下面的异常堆栈跟踪来识别。 Thanks in advance提前致谢

The fact that this happens for a user but not for the testers implies this may occur when the system is under load;这种情况发生在用户而不是测试人员身上的事实意味着这可能在系统负载时发生; database timeouts are pretty common in database queries functioning under stress if the database has been set up "out of the box" without tuning.如果数据库已“开箱即用”设置而没有进行调整,则数据库超时在压力下运行的数据库查询中非常常见。

I would suggest referring to The wait operation timed out.我建议参考等待操作超时。 ASP ASP

I don't have enough information to troubleshoot more question properly, since I don't know what DBMS you are working with.我没有足够的信息来正确解决更多问题,因为我不知道您正在使用什么 DBMS。 But as a rule this seems to happen because a call to the database is timing out.但通常这似乎是因为对数据库的调用超时。 In SQL Server, increasing the CommandTimeout (NOT connection timeout) is one of the quick-and-dirty ways to solve the problem.在 SQL 服务器中,增加 CommandTimeout(不是连接超时)是解决问题的快速而肮脏的方法之一。

In SQL Server, CommandTimeout is the time allowed for an operation before exiting with a time out error.在 SQL 服务器中,CommandTimeout 是在出现超时错误之前允许操作的时间。 Connectiontimeout, by contrast, is the time the system waits when trying to open an initial connection to the database.相比之下,Connectiontimeout 是系统在尝试打开与数据库的初始连接时等待的时间。 Changing connectiontimeout won't help with the timeout of an operation, but commandtimeout will.更改 connectiontimeout 无助于操作超时,但 commandtimeout 会。

Other DBMS systems will have other mechanisms for resolving timeout issues.其他 DBMS 系统将有其他机制来解决超时问题。

That's one quick and dirty solution.这是一种快速而肮脏的解决方案。 The longer solution is to add more logging to your system to identify which calls are timing out, then doing some DBA work to optimize the query and database performance.更长的解决方案是向您的系统添加更多日志记录以识别哪些调用超时,然后做一些 DBA 工作来优化查询和数据库性能。 My understanding is that entity frameworks also have tuning options for automatically generated queries, but exactly what those are depends on which one you're using!我的理解是实体框架也有自动生成的查询的调整选项,但究竟是什么取决于你使用的是哪一个!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 等待操作超时。 ASP - The wait operation timed out. ASP 查找等待操作超时的原因 - Find Reason for The wait operation timed out 等待操作超时 - memory 问题 - The Wait Operation Timed Out - memory issues LINQ to Entities(等待操作超时) - LINQ to Entities (The wait operation timed out) The wait operation timed out Win32Exception (0x80004005): The wait operation timed out azure - The wait operation timed out Win32Exception (0x80004005): The wait operation timed out azure 实体框架-排序字符串导致“等待操作超时” - Entity Framework - Sorting Strings is causing “The wait operation timed out” 无法连接到SQL Server会话数据库-等待操作超时 - Unable to connect to SQL Server session database - The wait operation timed out ASP .NET应用中的sql命令“等待操作超时” - “wait operation timed out” for sql command in ASP .NET app SQL Server Express (localdb) 等待操作超时——查询随机超时? - SQL Server Express (localdb) The wait operation timed out - query timing out at random? 目前,我的所有SQL请求显示“System.ComponentModel.Win32Exception:等待操作超时” - Currently, All my SQL Request showing “System.ComponentModel.Win32Exception: The wait operation timed out”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM