ASP.net中服务器上的mantanig连接异常 [英] Exception on mantanig connection on server in ASP.net

查看:135
本文介绍了ASP.net中服务器上的mantanig连接异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在服务器上托管一个网站,一个问题是,有时它无法从服务器检索数据,这会导致异常,但是当我在localhost中运行时,它并没有给我error.and一个重要的问题,我正在使用Web服务.这可能是问题???我认为建立连接需要花费一些时间,或者可能还有其他问题,请建议我如何解决这个问题.

Hi,
I am hosting one web site in server one problem is that some time it can not retrive data from server it gives the exception but when i run in localhost it dosnt give me error.and one importent thing i m using web service.can it be problem??? I think for creating connection it taking time or may be some other proble please suggest me how can i over come frpm that prob.

推荐答案

如果您遇到会话过期错误,您可以增加会话时间,也可以使用本文建议. [
If you are getting session expired errors, you can either increase your session time, or use something like this article suggests.[^]

Another way would be to save your session state, either to a database or using cookies etc... it all depends what you are trying to achieve.


这篇关于ASP.net中服务器上的mantanig连接异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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