简体   繁体   English

提供程序未在IIS中的本地计算机上注册

[英]Provider is not registered on the local machine in IIS

When I execute my webservice via Visual Studio 2012, it works correctly ,but whenever my program executed by IIS I have an error like this. 当我通过Visual Studio 2012执行我的Web服务时,它可以正常工作,但是每当我的程序由IIS执行时,我都会出现这样的错误。

   System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
       at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.OleDb.OleDbConnection.Open()
       at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
       at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
       at System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
       at System.Web.UI.WebControls.SqlDataSource.Select(DataSourceSelectArguments arguments)

Additionally, I dont use OleDB Connection in my code ,I use Access DataSource so that my code doesnot include connection string. 另外,我不在代码中使用OleDB Connection,而是使用Access DataSource,以便我的代码不包括连接字符串。

How can I solve this problem. 我怎么解决这个问题。 Thanks in advance. 提前致谢。

I solved my problem. 我解决了我的问题。

ISS manager -> Click Application Pool -> Right Click Your Application -> Advance Settings -> Enable 32 bit Application set True ISS管理器->单击应用程序池->右键单击您的应用程序->高级设置->启用32位应用程序设置为True

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “MSDAORA.1”提供程序未在本地计算机上注册 - The 'MSDAORA.1' provider is not registered on the local machine 'VFPOLEDB' 提供程序未在本地计算机上注册异常仍然存在 - The 'VFPOLEDB' provider is not registered on the local machine exceptions persists MySQLProv / IBMDADB2提供程序未在本地计算机上注册 - MySQLProv / IBMDADB2 Provider is not registered on the local machine OraOLEDB.Oracle 提供程序未在本地计算机上注册 - OraOLEDB.Oracle provider is not registered on the local machine 未在本地计算机上注册“ Provider = Microsoft.ACE.OLEDB.12.0”提供程序 - The 'Provider=Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine 错误:“ Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册” - Error: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine' Microsoft.ACE.OLEDB.12.0提供程序未在本地计算机上注册? - Microsoft.ACE.OLEDB.12.0 Provider is not registered on the Local Machine? Microsoft.Jet.OLEDB.4.0的提供程序未在本地计算机上注册 - Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine Microsoft.ACE> OLEDB12.0'提供程序未在本地计算机上注册 - Microsoft.ACE>OLEDB12.0' provider is not registered on the local machine microsoft.ace.oledb.12.0 provider未在本地注册 - microsoft.ace.oledb.12.0 provider is not registered on the local machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM