Cannot create SSPI context

前端 未结 19 1499
北海茫月
北海茫月 2020-12-28 13:13

I am working on a .NET application where I am trying to build the database scripts. While building the project, I am getting an error \"Cannot create SSPI context.\". This e

19条回答
  •  暖寄归人
    2020-12-28 13:38

    Had a really weird instance of this; All the web products that had connection strings containing the windows computer name of the SQL server worked fine, but the products that had a FQDN with the internal domain attached gave an SSPI error. i.e. COMPUTERNAME vs COMPUTERNAME.DOMAIN (ping always worked as expected)

    This ONLY gave problems when a new SQL server was being used and hosts files pointed both the computer name and the computername as a FQDN for the connection strings.

    Solution in this case was to set all the connection strings to the computer name only, removing the domain references.

    SQL : 2008R2 SQL2012

    IIS : 2008R2

提交回复
热议问题