Errore server nell'applicazione '/'.

Cannot open database "MSSql199609" requested by the login. The login failed.
Login failed for user 'MSSql199609'.

Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere la traccia dello stack.

Dettagli eccezione: System.Data.SqlClient.SqlException: Cannot open database "MSSql199609" requested by the login. The login failed.
Login failed for user 'MSSql199609'.

Errore nel codice sorgente:


Riga 10: 		Dim cmUlt
Riga 11: 		Dim cn as SQLConnection = new SQLConnection(ConfigurationSettings.AppSettings("conn"))
Riga 12: 		cn.Open()
Riga 13: 		cmUlt = New SqlCommand("SELECT top "& variabili.numeroUltimi &" product_id, product_name, product_price, product_sconto, product_picture, product_quantity FROM products WHERE product_label = 1 ORDER BY product_id DESC ", cn)
Riga 14: 		

File di origine: D:\inetpub\webs\donaferit\ultimi.ascx    Riga: 12

Traccia dello stack:


[SqlException (0x80131904): Cannot open database "MSSql199609" requested by the login. The login failed.
Login failed for user 'MSSql199609'.]
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1307
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +108
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +941
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +143
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +17
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +139
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +448
   System.Data.SqlClient.SqlConnection.Open() +130
   ASP.ultimi_ascx.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\donaferit\ultimi.ascx:12
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2851


Informazioni di versione: Versione di Microsoft .NET Framework:4.0.30319; Versione di ASP.NET:4.8.4690.0