简体   繁体   English

用户“XX”登录失败

[英]Login failed for user 'XX'

Login failed for user 'xx'.用户 'xx' 登录失败。 Description: An unhandled exception occurred during the execution of the current web request.说明:在执行当前 Web 请求期间发生未处理的异常。 Please review the stack trace for more information about the error and where it originated in the code.请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'xx异常详细信息:System.Data.SqlClient.SqlException:用户 'xx 登录失败

The issue has been resolved after changing the settings of IIS.更改 IIS 设置后问题已解决。 I have changed it to Application pools--> Default app pool --> advance settings--> identity --> local system.我已将其更改为应用程序池--> 默认应用程序池--> 高级设置--> 身份--> 本地系统。 IIS settings . IIS 设置 Also i have changed the settings on SQL database(security --> logins-->select your login name --> (right click )properties-->server role--> sysadmin) Database settings on login我还更改了 SQL 数据库上的设置(安全性 --> 登录名 --> 选择您的登录名 -->(右键单击)属性 --> 服务器角色 --> 系统管理员)登录时的数据库设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM