简体   繁体   中英

How to keep track of database login in IIS application?

I am deploying my project from Visual Studio to IIS following a tutorial and using SQL Server Management Studio.Whenever i try to open the project by typing " http://localhost:84/ " ( as it was the configured port ), I get the error message:

Server Error in '/' Application.

Cannot open database "MyIMDB" requested by the login. The login failed. Login failed for user 'PC19\\MyIMDBUser'.

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: Cannot open database "MyIMDB" requested by the login. The login failed. Login failed for user 'PC19\\MyIMDBUser'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

I had already done what is proposed in

Login failed for user 'IIS APPPOOL\\ASP.NET v4.0'

the user I created is the PC19\\MyIMDBUser

There is any other way by which I can keep track of what is happening step by step in the database?Like, see when it try to login, what the user it uses, password and such? Something like the breakpoint on Visual Studio maybe? Anything that I can gather more info about what is happening and why the project is doing that?

Go to IIS --> Application pools and change identity user

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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