Sql-server – Windows authetication issues”The login is from an untrusted domain and cannot be used with Windows authentication.”

sql serversql-server-2016trustwindows

My domains actually trust each other because I have access from both sides and can log in with Sql authentication. But when I try to access it with windows authentication it gives the "Login failed. The login is from a Un- trusted domain and cannot be used with Windows authentication.

(Microsoft SQL Server, Error: 18452)" error. Plus the sql server accepts sql and windows auth.

Thanks

Best Answer

It happened to me. In web.config, when I checked connectionString it was set to Integrated Security=true. Make Integrated Security=false if you are providing the username and password.