Errore server nell'applicazione '/'.

Il provider 'Microsoft.ACE.OLEDB.12.0' non è registrato nel computer locale.

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.InvalidOperationException: Il provider 'Microsoft.ACE.OLEDB.12.0' non è registrato nel computer locale.

Errore nel codice sorgente:


Riga 84:         using (OleDbConnection conn = new OleDbConnection(constr))
Riga 85:         {
Riga 86:             conn.Open();
Riga 87:             //DataTable sheetNames = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });  //Get All Sheets Name
Riga 88:             DataTable sheetNames = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);  //Get All Sheets Name

File di origine: c:\WEBFARM_FTP\localuser\ftpcomaco\atlascopco.aspx.cs    Riga: 86

Traccia dello stack:


[InvalidOperationException: Il provider 'Microsoft.ACE.OLEDB.12.0' non è registrato nel computer locale.]
   System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) +263
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +515
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +104
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) +57
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +1186
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315
   System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +23
   System.Data.OleDb.OleDbConnection.Open() +53
   atlascopco.fill_excel() in c:\WEBFARM_FTP\localuser\ftpcomaco\atlascopco.aspx.cs:86
   atlascopco.Page_Load(Object sender, EventArgs e) in c:\WEBFARM_FTP\localuser\ftpcomaco\atlascopco.aspx.cs:66
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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