System.Data.SqlClient.SqlException: Login failed for user

前端 未结 10 2350
难免孤独
难免孤独 2020-12-01 14:11

Working with my project in debug I have no issues. However running it in IIS I am getting this error:

System.Data.SqlClient.SqlException: Login failed for us

10条回答
  •  忘掉有多难
    2020-12-01 14:40

    Just set Integrated Security=False and it will work ,according to a comment difference between True and False is:

    True ignores User ID and Password if provided and uses those of the running process, SSPI(Security Support Provider Interface ) it will use them if provided which is why MS prefers this. They are equivalent in that they use the same security mechanism to authenticate but that is it.

提交回复
热议问题