These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Problem with NHibernate connection
PostPosted: Fri May 30, 2008 8:25 am 
Newbie

Joined: Fri May 30, 2008 8:14 am
Posts: 2
Hy Everyone!
I’m a software developer and, in my application, I have a problem with the NHibernate’ Connections.
In particular I need to detach/attach my database (with another DB with the same name but different data) while my application is running.
I can do it; but at the first query with Hibernate I’ve this error message: “There’s an error in the transport level when sending the request to the server - Provider shared memory, error: 0 – No process in the other side of the pipe.”
Can everyone help me?
Thank’s


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 8:08 am 
Newbie

Joined: Wed Jun 18, 2008 8:02 am
Posts: 2
I have the same exact problem.

I have a database that need to be taked offline, and after teked online again.
The application need to be always running, but after the database was restarted at the first query I get the error "No process in the other side of the pipe".


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 10:27 am 
Newbie

Joined: Wed Jun 18, 2008 8:02 am
Posts: 2
Hey! Yeah I find the solution.

As described in this post:

http://www.devnewsgroups.net/group/micr ... 54394.aspx

The problem was the System.Data.SqlClient.SqlConnection class that make a cache of the DB conection. since database is restarted,
connection is not valid anymore.

To solve this problem set pooling=false in the connection string used to access the database.

I hope that this could help.

Regards


Top
 Profile  
 
 Post subject: Done
PostPosted: Fri Jun 20, 2008 8:27 am 
Newbie

Joined: Fri May 30, 2008 8:14 am
Posts: 2
OK! Thanks a lot for your help.
I've solve my problem with "pooling=false".
Great


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.