Search code examples
c#sql-serverconnection-stringworkgroup

Untrusted domain error with windows authentication in work group


I have a sql instance installed on my server with windows authentication mode. In my client I try to connect via windows authentication connection string. But when I test my application on client system I get following error :

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

I tried to find the reason and I found that it happens in work groups and windows authentication.

Would you help me to solve the problem in work group with windows authentication?


Solution

  • I finally founded the solution that worked for me. I loged in to both client and server system with the same username and password.