A connection was successfully established with the server, but then an error occurred during the login process. (Error Number: 233)

后端 未结 14 1539
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 13:03

I am having error while connecting to SQL Server:

Details in Stack Trace are:

===================================

Cannot connect to ServerN         


        
14条回答
  •  既然无缘
    2020-12-05 13:13

    My problem resolved by this what changes i have done in .net core Do this changes in Appsetting.json

    Server=***;Database=***;Persist Security Info=False;User ID=***; Password=***;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=False;Connection Timeout=30
    

    and Do following changes in Package console manager

    Scaffold-DbContext "Server=***;Database=***;Persist Security Info=False;User ID=***; Password=***;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=False;Connection Timeout=30;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Context DatabaseContext -f
    

    Happy coding

提交回复
热议问题