"untrusted Domain" error when trying to connect to the database

Asked

Viewed 121 times

3

While trying to connect to database, I get the following error:

Login failed. The login is from an untrusted Domain and cannot be used with Windows Authentication.

I’m using MVC 5 and below follows my connectionstring. I’m not using Windows Authentication, but for some reason the system is considering as if I were using.

add providerName="System.Data.Sqlclient" connectionString="Data Source=123.456.789.10;Initial Catalog=Dobanco;Integrated Security=True;Persist Security Info=True;Connect Timeout=30; User ID=Foo; Password=Bar" name="Defaultconnection"

1 answer

5


Arrow Integrated Security=False;

When false, user ID and password are specified on the connection. When true, current Windows account credentials are used for authentication. Recognized values are true, false, yes, no, and SSPI (highly recommended), which is equivalent to true . If the ID user and password are specified and Integrated Security is set as true, user ID and password will be ignored and Security Integrated will be used.

Source: MSDN.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.