运行项目时超时问题 [英] Problem of timeout while run project

查看:185
本文介绍了运行项目时超时问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

超时已过期。操作完成之前已经过了超时时间,或者服务器没有响应。



i当我运行网站时面临这个问题


我更改了超时但仍然遇到了这个问题



Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

i faced this problem when i run website

in web.config file i changed timeout but still faced this problem

<authentication mode="Forms">
            <forms loginUrl="~/Account/Login.aspx" timeout="1000"/>
        </authentication>

推荐答案

首先,您应该删除此超时。这是认证超时(某人的登录会话有效,滚动或绝对多长时间)。这通常设置为20分钟,如果它过期,用户将需要重新定向到登录页面,如果他们试图访问安全的东西。





您将获得执行超时,您可以对此进行扩展(请参阅 [ ^ ])*但是,你最好优化导致这种情况的长时间运行过程。一个典型的例子是SQL调用编写得不好,因此需要很长时间。
First, you should remove this timeout. This is the authenticaion timeout (how long someone''s login session is valid, either rolling or absolute). This is normally set to 20mins, and if it expires the user will need to be re-directed to the login page if they try to access something secure.


You are getting an execution timeout, you can extend this (see this[^]) *BUT* you are better off optimising the long running process that is causing this. A typical example would be an SQL call that isn''t well written and therefore taking a long time.


这篇关于运行项目时超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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