Reputation: 14099
The WCF service is running under NT AUTHORITY\NETWORK SERVICE account, the request is impersonated with other account (which is admin on the DB), but NHibernate is throwing an exception:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Any ideas?
Upvotes: 2
Views: 1419
Reputation: 14099
NHibernate had nothing to do with the problem. It was imopersonation setup problem. The solution could be found here.
Upvotes: 1