Thursday 11 June 2015

The login is from an untrusted domain and cannot be used with Windows authentication.

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException (0x80131904): Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.]

   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5341687
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +546



The following fix via Group Policy worked for me:


  • Open Group Policy Administrator
  • Navigate to Computer Configuration >> Windows Settings >> Local Polices >> Security Options
  • Double Click "Network Security: LAN Manager authentication level"
  • Change option from "Send NTLM Responses" to "Send LM & NTLM responses"
  • Run gpupdate /force on affected computers and servers.


Check if your DC installed the update KB3002657 tonight.
see http://support2.microsoft.com/?kbid=3002657