Server Error in '/' Application.

Non è possibile aprire il database "Revo_0000000" richiesto dall'account di accesso. L'accesso non è riuscito.
L'acccesso non è riuscito per l'utente 'web14'.

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: Non è possibile aprire il database "Revo_0000000" richiesto dall'account di accesso. L'accesso non è riuscito.
L'acccesso non è riuscito per l'utente 'web14'.

Source Error:


Line 46:         if (this.Page.RouteData.Values["id"] != null) recid = Int32.Parse(this.RouteData.Values["id"].ToString());
Line 47:         // ==============================
Line 48:         SqlConnection con_age_1 = new SqlConnection(ConfigurationManager.AppSettings["Db_Conn"].ToString().Replace("=RevoXxx", "=Revo_" + ageid.ToString("0000000"))); con_age_1.Open();
Line 49:         // ==============================
Line 50:         int tot = 0;

Source File: c:\Web\web_pers_gruppi\casa-life.it_web_14\scheda.aspx    Line: 48

Stack Trace:


[SqlException (0x80131904): Non è possibile aprire il database "Revo_0000000" richiesto dall'account di accesso. L'accesso non è riuscito.
L'acccesso non è riuscito per l'utente 'web14'.]
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +345
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +156
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +258
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +312
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +202
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +413
   System.Data.SqlClient.SqlConnection.Open() +128
   ASP.scheda_aspx.Page_PreInit(Object sender, EventArgs e) in c:\Web\web_pers_gruppi\casa-life.it_web_14\scheda.aspx:48
   System.Web.UI.Page.OnPreInit(EventArgs e) +11856452
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3640.0