IIS 7 and Above
Issue to deploy to https
Last post Nov 09, 2018 05:34 AM by Brando Zhang
Oct 30, 2018 08:29 AM|wmec|LINK
What can be reason to the below error, while it only happens when I deployed the same project to https (everything is fine if I deploy it to http)?
Server Error in '/RegRec2' Application.
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
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.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
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.
[InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.]
System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) +258
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +497
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +100
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) +1142
System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +312
System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +23
RegRec2._Default.Page_Load(Object sender, EventArgs e) +1734
System.Web.UI.Control.OnLoad(EventArgs e) +106
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3190.0
Oct 30, 2018 12:56 PM|lextm|LINK
when I deployed the same project to https (everything is fine if I deploy it to http)?
You probably also use a different application pool?
Oct 31, 2018 01:37 AM|wmec|LINK
I used the same Application pool and still had the same issue.
Nov 09, 2018 05:34 AM|Brando Zhang|LINK
Could you please tell me how you deploy the sites to https?
As far as I know, we could directly enable the sites from http to https.
I suggest you could try convert the http to https in IIS and test again.
More details about how to enable https in IIS, you could refer to below article.