Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Aug 09, 2025, 06:17 AM

Title: Unable to connect to MSSQL using web.config
Post by: Suhitha on Aug 09, 2025, 06:17 AM
Question: Unable to connect to MSSQL using web.config: Cannot open database "ASPState" requested by the login. The login failed.

Applicable to:



Symptoms

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'.]

    c:/> iisreset