Applicable to:
- Plesk for Windows
Symptoms
- Configuring a connection to MSSQL in
web.config
produces the following error:PLESK_ERROR: Server Error in '/' Application.
Cannot open database "ASPState" requested by the login. The login failed.
Login failed for user 'dbuser'.
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 "ASPState" requested by the login. The login failed.
Login failed for user 'dbuser'.
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.
Stack Trace:
[SqlException (0x80131904): Cannot open database "ASPState" requested by the login. The login failed.
Login failed for user 'dbuser'.]
Cause
Session State misconfiguration on IIS
Resolution
-
Connect to the Plesk server via RDP.
- On the IIS Manager, go to Sites > domain.com > Session State
- On the Session State screen, under the Session State Mode Settings, I selected 'In process' (see the arrow):
- On the right, under the Actions pane, click Apply.
- Open a command prompt as Administrator and run the following command:
C:\> iisreset
Comments
0 comments
Please sign in to leave a comment.