The Error "Login failed for user"
2010-11-24 11:03
435 查看
When I deploy the website to my server, it comes out the error: Login failed for user"xxx/xxx", more detail as below:
Description: An unhandled exception occurred during the execution of the current web request. 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 'NT AUTHORITY/LOCAL SERVICE'.
After searching from the internet, I know that reason of it. The problem is the permisstion of the IIS as the default permisstion is low. Then we need to configure the settting of the Application Pool. Operation Steps:
Step 1: Open the Internet Information Services (IIS) Manager
Step 2: Click the Application Pools and select the web site you want to configure.
Step 3: Change the Identity to Local System in the Advanced Setting and click ok.
After that, your web site works. Hope that can help you.
Reference:http://www.cnblogs.com/longgel/archive/2010/05/13/1735010.html
Description: An unhandled exception occurred during the execution of the current web request. 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 'NT AUTHORITY/LOCAL SERVICE'.
After searching from the internet, I know that reason of it. The problem is the permisstion of the IIS as the default permisstion is low. Then we need to configure the settting of the Application Pool. Operation Steps:
Step 1: Open the Internet Information Services (IIS) Manager
Step 2: Click the Application Pools and select the web site you want to configure.
Step 3: Change the Identity to Local System in the Advanced Setting and click ok.
After that, your web site works. Hope that can help you.
Reference:http://www.cnblogs.com/longgel/archive/2010/05/13/1735010.html
相关文章推荐
- Trouble shooting:login failed for user 'sa' ,the user is not associated with a trusted SQL Server
- Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection. [SQLSTATE 28000] (Error 18452). The st
- Understanding the error message: “Login failed for user ''. The user is not associated with a trusted SQL Server connect
- Host Credentials报错"Connection to host as user oracle failed: ERROR: Wrong password for user"的解决一例
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)
- Cannot open database "WWALMDB" requested by the login.The login failed Login failed for user sa
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- [solve]Ubuntu login "Failed to add entry for user"
- This article provides a fix for the error: Login failed for user “. The user is not associated with a trusted SQL Server
- Login failed for user 'sa'. Reason: The account is disabled. (Microsoft SQL Server, Error: 18470)
- 【Linux】psql: FATAL: Ident authentication failed for user "username" Error and Solution
- pgadmin3 新建服务器出现错误 Peer authentication failed for user "postgres" 的解决办法
- 【xcode】错误之Could not launch "" failed to get the task for process
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- ERROR: Upgrade faifailed bin/mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost'
- [Nginx学习]nginx: [error] OpenEvent("Global\ngx_reload_5988") failed (2: The system cannot find the fi
- The server method '' failed with the following error:" .... and no error description
- sql 2005 Login failed for user '登录名'. Reason: The password of the account has expired.