使用Windows Auth / trusted进行间歇性失败的SQL Server登录 - 用户'DOMAIN \ MACHINENAME $'登录失败

时间:2011-09-13 17:32:46

标签: sql-server wcf

也可在此处找到:http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/1002346f-abb9-444d-88e2-b381938ad6d1

我们正在使用带有autofac的.NET 4.0,带有Fluent nHibernate 1.2的nHibernate 3.1。我们在Windows Server 2008 R2 x64和SQL Server 2008上的IIS7.5中托管了一个WCF应用程序。我们在生产中遇到间歇性登录失败;有些可能处于负载状态,有些肯定不会受到任何负载。我们配置了IIS Windows身份验证和SQL Server可信身份验证,并且在大多数情况下,为IIS应用程序池配置的服务帐户按预期进行身份验证,但间歇性地我们收到计算机名称而不是服务帐户的登录消息失败:

Autofac.Core.DependencyResolutionException: An exception was thrown while 
executing a resolve operation. See the InnerException for details. 

---> FluentNHibernate.Cfg.FluentConfigurationException: An invalid or 
incomplete configuration was used while creating a SessionFactory. 
Check PotentialReasons collection, and InnerException for more detail.

---> System.Data.SqlClient.SqlException: Login failed for user 'DOMAIN\MACHINENAME$'.

... trimmed less relevant parts of error message ...

0 个答案:

没有答案