Can somebody help me?
I google a lot but have no gain~
On Mar 19, 9:58 pm, Levin <[email protected]> wrote:
> Hello,
> I got a strange exception today,and i never saw this kind of error
> before...Please share me your opinions.
> I use NHibernate2.01 and Sql server 2008,when i try to fetch a
> session instance's Connection property in one of my unit test,it
> throws the exception:
>
> A connection was successfully established with the server, but
> then an error occurred during the login process. (provider: Shared
> Memory Provider, error: 0 - No process is on the other end of the
> pipe.)
>
> Oh my~ What's going on?
> I then switched my nh configuration to use in-memory sqlite, the
> unit test passed green,everything was fine.It means that my mapping
> files and entities are OK.
> I then started a new unit test to use raw ado.net to connect to my
> sqlserver database with exactly same account,fetched some records,the
> unit test passed green too.It means that my sql server is running
> fine,and my login account has enough power...
>
> Then, i have no choice but writing this post for help. I just hope
> that some one can give me some ideas.
>
> BTW:The stack trace follows below,
> at System.Data.ProviderBase.DbConnectionPool.GetConnection
> (DbConnection owningObject)
> at System.Data.ProviderBase.DbConnectionFactory.GetConnection
> (DbConnection owningConnection)
> at System.Data.ProviderBase.DbConnectionClosed.OpenConnection
> (DbConnection outerConnection, DbConnectionFactory connectionFactory)
> at System.Data.SqlClient.SqlConnection.Open()
> at NHibernate.Connection.DriverConnectionProvider.GetConnection()
> at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
>
> And,here is my nh configuration,
> <?xml version="1.0" encoding="utf-8" ?>
> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
> <session-factory>
> <property
> name="connection.provider">NHibernate.Connection.DriverConnectionProvider</
> property>
> <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</
> property>
> <property
> name="connection.driver_class">NHibernate.Driver.SqlClientDriver</
> property>
> <property
> name="connection.connection_string">server=XXX;database=XXX;uid=XX;pwd=XXX;</
> property>
> <property name="connection.release_mode">on_close</property>
> <property name="show_sql">true</property>
> <property name="cache.use_second_level_cache">true</property>
> <property name="cache.use_query_cache" >true</property>
> <property name="cache.provider_class">
> NHibernate.Caches.SysCache.SysCacheProvider,
> NHibernate.Caches.SysCache
> </property>
> </session-factory>
> </hibernate-configuration>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---