"Untrusted domain" error when trying to connect to the database

3

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

  

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

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

  

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

    
asked by anonymous 23.10.2014 / 21:33

1 answer

5

Arrow Integrated Security=False;

  

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

Source: MSDN .

    
23.10.2014 / 21:38