Na produkcji wszystko działa .Natomiast na serwerze testowym ,który jest w innej sieci ale połączony jest z bazą dzieją się dziwne cuda.Czy gdzieś jeszcze jest do zmiany odwołanie do bazy?Context mam ustawiony DefaultConnection z connstring.config?Czy może to problem z kontem windowsowym na serwerze?
-Request login dla jednego konta pobiera ucięte hasło z bazy 100 znaków zamiast 128.
-Natomiast dla innego,który jest w bazie
"Message": "An error has occurred.",
"ExceptionMessage": "Object reference not set to an instance of an object.",
"ExceptionType": "System.NullReferenceException",
-kiedy zmieniam w connstring Catalog czyli wskazuje inną bazę to dostaje komunikat.Login failed a dane są porawne
"Message": "An error has occurred.",
"ExceptionMessage": "The underlying provider failed on Open.",
"ExceptionType": "System.Data.Entity.Core.EntityException",
"StackTrace": " at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
InnerException":{
"Message": "An error has occurred.",
"ExceptionMessage": "Cannot open database \"baza_test\" requested by the login. The login failed.\r\nLogin failed for user
Tak wygląda mój connstring
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=.;Initial Catalog=xxx;User Id=sa;Password=sa" providerName="System.Data.SqlClient" />
<add name="xxxEntities" connectionString="metadata=res://*/xxxModel.csdl|res://*/xxModel.ssdl|res://*/xxxModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.;Initial Catalog=xxx;User Id=sa;Password=sa;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
Web.config odwołuje się tak
web.config mam
<connectionStrings configSource="ConnStrings.config" />
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>