部署问题:甲骨文+ EF4 +赢Server 2008中 [英] Deployment Issues: Oracle + EF4 + Win Server 2008

查看:244
本文介绍了部署问题:甲骨文+ EF4 +赢Server 2008中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我建立和Win7的本地机器上运行针对.NET 4.0的ASP.NET Web窗体应用程序。 (全部是当地的中的确定。)我的应用程序正在运行EF4.1针对Oracle数据库,所以我使用Oracle EF数据提供者,它仍处于测试阶段。

I have an ASP.NET Web Forms app that I am building and running against .NET 4.0 on a Win7 local machine. (All is OK on local box.) My app is running EF4.1 against an Oracle DB, so I am using the Oracle EF data provider, which is still in Beta.

现在,我可以在应用程序成功地部署到使用Web部署从我的本地VS2010我的Win2008 Server目标机,但是当我运行目标上的应用程序,我得到了经典的无法找到要求.NET Framework数据提供错误。

Right now, I can successfully deploy the app to my Win2008 Server target machine using Web Deploy from my local VS2010, but when I run the app on the target, I get the classic Unable to find the requested .Net Framework Data Provider error.

下面是我的(不成功)设置,截至目前:

Here's my (unsuccessful) setup, as of now:


    在对应用程序池(.NET 4.0)
  • 32位应用程序的启用
    的Win2008 Server目标。

  • 32-bit applications are enabled in the app pool (.NET 4.0) on the Win2008 Server target.

复制本地设置为真正针对本地VS2010的解决方案 Oracle.DataAccess DLL

Copy Local is set to true for the Oracle.DataAccess DLL in my local VS2010 solution.

两个的在平台 目标平台设置设置为任何CPU的在我的本地生成配置。 (我努力了
不同的设置,在这里都没有成功。)

Both of the Platform and Platform target settings are set to Any CPU in my local Build Configuration. (I have tried different settings here without success.)

该服务器的Win2008目标做的不可以必须在 Oracle.DataAccess DLL
GAC中。 (我认为在Oracle DLL设置复制本地会
意味着我并不需要G​​AC)。

The Win2008 Server target does not have an Oracle.DataAccess DLL in the GAC. (I thought that setting Copy Local on the Oracle DLL would mean that I didn't need the GAC.)

修改:我试图GAC的 Oracle.DataAccess DLL,但我得到了讨论同样的错误的here 。 (我还是要研究这个。)此外,已经有关于我的目标框中选择另一个Oracle客户端,并安装附带的Oracle EF数据提供商似乎与干涉它的Oracle客户端。这不能被允许发生

EDIT: I have tried to GAC the Oracle.DataAccess DLL, but I get the same error that is discussed here. (I still have to investigate this.) Also, there is already another Oracle client on my target box, and installing the Oracle client that comes with the Oracle EF data provider seems to interfere with it. This cannot be allowed to happen.

问题1 :什么样的组合的构建配置设置(在本地盒)和IIS设置(目标),我需要以选择,以便能够在2008年运行我的应用程序服务器?

Question 1: What combination of build configuration settings (on the local box) and IIS settings (on the target) do I need to select in order to be able to run my app on the 2008 Server?

问题2 :我怎样​​才能得到这个没有我的目标服务器上安装其他Oracle客户端工作?

Question 2: How can I get this to work without installing another Oracle client on my target server?

您的帮助再次感谢。

更新:所有正在。见我的回答如下一个链接到完整的解决方案,以及链接有用的信息。

Update: All is working. See my answer below for a link to the full solution, as well as links to helpful information.

推荐答案

GTG的解决方案提供了回答我的问题1的至少一部分,所以我upvoting他的解决方案。对于任何人在我的第二个问题的兴致(如何执行一个不显眼的ODAC安装),答案可以发现<一个href=\"http://stackoverflow.com/questions/491876/why-doesnt-odp-net-11-xcopy-deployment-work-on-a-machine-with-oracle-db-10-inst\">here. (查找AnthonyVO的回答,因为它封装了所有必要的信息。)

GTG's solution provides at least part of the answer to my Question 1, so I am upvoting his solution. For anyone else interested in my Question 2 (how to perform an unobtrusive ODAC installation), an answer can be found here. (Look for AnthonyVO's answer, as it encapsulates all the necessary information.)

我要指出,我还没有能够得到不显眼的解决方案,为我工作,但许多有,这是我需要实现的解决方案。

I should mention that I have not yet been able to get the unobtrusive solution to work for me, but many have, and it is the solution that I need to implement.

更新:结案。我错过了一个Oracle DLL。我完全设置显示<一个href=\"http://stackoverflow.com/questions/8543314/unobtrusive-oracle-deployment-on-windows-server-2008/\">here.

UPDATE: Case closed. I was missing an Oracle DLL. My full setup is shown here.

这篇关于部署问题:甲骨文+ EF4 +赢Server 2008中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆