2012-11-20 16 views
1

我有一個.Net應用程序,它通過ODAC連接到Oracle數據庫。我在本地使用ODAC 11.2 Release 4(11.2.0.3.0)和我的客戶端上的Oracle Developer Tools for Visual Studio進行了本地開發。它的工作很好。如何在Windows服務器上配置Oracle數據訪問組件

我現在已經嘗試將其部署到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.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure()在System.Web.UI.WebControls.SqlDataSource.CreateConnection(字符串connectionString)System.Web.UI上System.Data.Common.DbProviderFactories.GetFactory(字符串providerInvariantName) .WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments參數)在System.Web.UI.DataSourceView.Select(DataSourceSelectArguments參數,DataSourceViewSelectCallback回調)在System.Web.UI.WebControls.DataBoundControl.PerformSelect()在System.Web.UI.WebControls。在System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e)System.Web.UI.Control.PreRenderRecursiveInternal()System.Web.UI.Control.PreRenderRecursiveInternal()System.Web上的BaseDataBoundControl.EnsureDataBound()。 System.Web.UI.Control.PreRenderRecursiveInternal()在System.Web.UI.Control.PreRenderRecursiveInternal()System.Web.UI.Control.PreRenderRecursiveInternal()在System.Web.UI.Page.ProcessRequestMain()布爾includeStagesBeforeAsyncPoint,布爾ean includeStagesAfterAsyncPoint)

我不知道該怎麼解決。

感謝

+0

僅複製文件並設置路徑是不夠的,您還需要更改服務器上的某些配置。一個簡單的方法來完成這將是使用Oracle安裝程序,而不是xcopy。 – GTG

+0

我運行了屬於ODAC XCopy包的install.bat文件。我以爲這應該爲我配置一切? – mattbloke

+0

你的服務器是32位還是64位?如果64位,您安裝了哪個版本的Oracle組件? – GTG

回答

1

原來設置「啓用32位應用程序」,以真下的應用程序池在IIS使它工作。這是儘管應用程序編譯爲x86而不是任何CPU。

相關問題