开发者

sql connection timeout

开发者 https://www.devze.com 2023-01-06 10:11 出处:网络
i have my server written with structure map and fluent nhibernate, when i run my server from my pc and direct him to the db on another server i get a sqlexception that tells me that the timeout expire

i have my server written with structure map and fluent nhibernate, when i run my server from my pc and direct him to the db on another server i get a sqlexception that tells me that the timeout expired

this is the message : Timeout expi开发者_开发知识库red. The timeout period elapsed prior to completion of the operation or the server is not responding.

the line in code that marked on debug is

_transaction = _session.BeginTransaction();

any suggetions? the db is mssql 2008


First thing to do is make sure you have connectivity to that other database. Open management studio and try to connect.

If that connects, then you need to make sure you have all of your settings setup correctly. Check the web.config and the hibernate.xml file.

0

精彩评论

暂无评论...
验证码 换一张
取 消