【问题标题】:How to configure Oracle Data Access Components on Windows Server如何在 Windows Server 上配置 Oracle 数据访问组件
【发布时间】:2012-11-20 13:05:51
【问题描述】:

我有一个通过 ODAC 连接到 Oracle 数据库的 .Net 应用程序。我在客户端上使用 ODAC 11.2 Release 4 (11.2.0.3.0) 和 Oracle Developer Tools for Visual Studio 在本地开发了这个。它工作正常。

我现在尝试将其部署到 Windows 2008 Server。我将 ODAC 11.2 Release 4 (11.2.0.3.0) XCopy 安装到 c:\oracle 并将路径设置为 "C:\oracle;C:\oracle\bin;"

但是在应用程序尝试连接到 Oracle 时,我得到了

找不到请求的 .Net Framework 数据提供程序。它可能没有安装。在 System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) 在 System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure() 在 System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) 在 System.Web.UI .WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) 在 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) 在 System.Web.UI.WebControls.DataBoundControl.PerformSelect() 在 System.Web.UI.WebControls。 BaseDataBoundControl.EnsureDataBound() 在 System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e) 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web。 UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Bool ean includeStagesAfterAsyncPoint)

我想不通。

谢谢

【问题讨论】:

  • 仅仅复制文件和设置路径是不够的,还需要更改服务器上的一些配置。一个简单的方法是使用 Oracle Setup 而不是 xcopy。
  • 我运行了 install.bat 文件,它是 ODAC XCopy 包的一部分。我认为这应该为我配置一切?
  • 你的服务器是 32 位还是 64 位?如果是 64 位,您安装了哪个版本的 Oracle 组件?
  • 服务器是 64 位的。我想我尝试了 64 位软件包,但没有成功。我会再试一次,现在我已经让它在 32 位下工作了。请参阅下面的答案。谢谢

标签: oracle iis-7.5


【解决方案1】:

事实证明,在 IIS 的应用程序池下将“启用 32 位应用程序”设置为 true 可以正常工作。尽管将应用程序编译为 x86 而不是 Any CPU。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-09-21
    • 1970-01-01
    • 2016-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-08
    相关资源
    最近更新 更多