Server Error in '/' Application.

Could not find file 'd:\inetpub\webs\acoiit\App_Data\acoi2022_DB.MDB'.

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.OleDb.OleDbException: Could not find file 'd:\inetpub\webs\acoiit\App_Data\acoi2022_DB.MDB'.

Source Error:


Line 529:        connstring = ConfigurationManager.ConnectionStrings("strConnection_acoi2022").ConnectionString
Line 530:        Dim cn As New OleDbConnection(connstring)
Line 531:        cn.Open()
Line 532:        Dim strSQL As String
Line 533:        strSQL = "SELECT count(*) as totale FROM iscritti where profilo='socio'"

Source File: D:\inetpub\webs\acoiit\App_Code\utente_2022.vb    Line: 531

Stack Trace:


[OleDbException (0x80004005): Could not find file 'd:\inetpub\webs\acoiit\App_Data\acoi2022_DB.MDB'.]
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +334
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +92
   System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +24
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) +38
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +531
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +156
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +22
   System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +19
   System.Data.OleDb.OleDbConnection.Open() +43
   utente_2022.totale_utenti() in D:\inetpub\webs\acoiit\App_Code\utente_2022.vb:531
   _Default.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\acoiit\nazionale2022\aa_c_anagrafica.aspx.vb:24
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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