从休眠状态或连接到VPN唤醒计算机后,我无法登录到本地MSSQLServer
管理工作室中出现以下错误:
Cannot connect to localhost.
===================================
The target principal name is incorrect. Cannot generate SSPI context. (.Net SqlClient Data Provider)
Winver:1909 Pro
SqlServer:15.0.2070.41
域:否
同一台机器:是
在NT Service \ MSSQLSERVER下运行的MSSQLServer
已启用命名管道
已启用TCP / IP
身份验证:混合(Management Studio登录为Windows身份验证)
SQL Server浏览器+ SQL Server代理正在运行
它自11月起重新安装。问题也在11月开始。我只是想不通什么是错的。我读了几篇文章,但它们没有像我一样工作或没有在同一台机器上运行
编辑:Kerberos输出:日志
18/02/2020 12:27:24 Info: Connect to WMI, \root\cimv2
18/02/2020 12:27:50 Error: Access of User Principal information failed System.DirectoryServices.AccountManagement.PrincipalServerDownException: The server could not be contacted. ---> System.DirectoryServices.Protocols.LdapException: The LDAP server is unavailable.
at System.DirectoryServices.Protocols.LdapConnection.Connect()
at System.DirectoryServices.Protocols.LdapConnection.SendRequestHelper(DirectoryRequest request, Int32& messageID)
at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)
at System.DirectoryServices.AccountManagement.PrincipalContext.ReadServerConfig(String serverName, ServerProperties& properties)
--- End of inner exception stack trace ---
at System.DirectoryServices.AccountManagement.PrincipalContext.ReadServerConfig(String serverName, ServerProperties& properties)
at System.DirectoryServices.AccountManagement.PrincipalContext.DoServerVerifyAndPropRetrieval()
at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name, String container, ContextOptions options, String userName, String password)
at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name)
at KerberosCM.WMIHelper.TryGetUser(SystemInfo mi, UserPrincipal& user)
转到IIS服务器上的应用程序池,然后进行高级设置,确保所设置的身份帐户正确。还要检查您在IIS上设置的帐户,右键单击该网站,然后依次管理网站和管理网站和高级设置。