从休眠状态唤醒计算机或连接到VPN后,我无法登录到本地MSSQLServer
Management Studio中出现以下错误:
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输出:log
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)
答案 0 :(得分:0)
转到IIS服务器上的应用程序池,然后进行高级设置,确保所设置的身份帐户正确无误。此外,请检查您在IIS上设置的帐户,右键单击该网站,然后转到管理网站然后进行管理网站和高级设置。