ODAC 12.1.0.1.2无法连接到数据库om服务器,但可以在本地计算机上连接 [英] ODAC 12.1.0.1.2 is not able to connect to database om server but can be connected on local machine

查看:186
本文介绍了ODAC 12.1.0.1.2无法连接到数据库om服务器,但可以在本地计算机上连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,



我正在使用Windows Server 2012 R2标准(64位)并部署MVC 4应用程序定位框架4.5和平台目标x86。


我能够连接到本地机器Windows 7 x64中的数据库并对数据库进行操作。


但是当我尝试在下面的服务器上部署代码:



无法找到请求的内容.Net框架数据提供程序。它可能没有安装。







说明:



在执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



$


异常详细信息: System.ArgumentException:无法找到请求的.Net Framework数据提供程序。它可能没有安装。





来源错误:













在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。














堆栈追踪:












 [ ArgumentException:无法找到请求的.Net Framework数据提供程序。它可能没有安装。] 
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)+1479367
System.Data.EntityClient.EntityConnection.GetFactory(String providerString)+26




部署后我在bin文件夹中放置了以下dll:





    • OraOps11w.dll
    • Oracle.DataAccess.dll
    • oramts.dll
    • oramts11.dll
    • ociw32.dll
    • orannzsbb12.dll
    • oraocci12.dll
    • oraociei12.dll
    • OraOps12.dll
    • orasql12.dll



    当它在本地连接时,不确定部署到服务器时会发生什么。



    我正在使用Entity framework 5,MVC 4,ODAC 12.1.0.1.2,.Net framework 4.5


    我的本​​地机器和服务器都是x64位操作系统。





satya chenna

解决方案

Hi satya chenna,


感谢您在MSDN论坛上发帖。


请参阅:错误:无法找到请求的.Net Framework数据提供程序。它可能没有安装。


您可以尝试以下解决方法:


1。卸载并重新安装.NET framework 4.5。


2. 重新启动服务器


3。请参阅此
链接 
编辑machine.config文件删除DbProviderFactories的额外条目


4。重新启动服务器。


如果任何问题仍然存在,由于此论坛正在讨论.Net Framework设置和服务, 由于您的问题与MVC相关并且连接到数据库om服务器,我建议您发布一个新主题:
https:/ /forums.asp.net/1146.aspx/1?MVC 功能对于一个非常专业的
支持。


感谢您的理解。


最好的问候,


< p style ="background:white; line-height:normal; margin-bottom:0pt">


HI,

I am using Windows server 2012 R2 standard(64 bit) and deploying MVC 4 application targeting framework 4.5 and Platform target x86.

I am able to connect to the database in local machine windows 7 x64 and do operations on the database.

But when I try to deploy the code on the server it says following:

Unable to find the requested .Net Framework Data Provider. It may not be installed.


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.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.



Source Error:


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.





Stack Trace:


[ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.]
   System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1479367
   System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +26

I have following dlls placed on the bin folder after deploying:

    • OraOps11w.dll
    • Oracle.DataAccess.dll
    • oramts.dll
    • oramts11.dll
    • ociw32.dll
    • orannzsbb12.dll
    • oraocci12.dll
    • oraociei12.dll
    • OraOps12.dll
    • orasql12.dll

    When it connects in local not sure what happens when deployed to server.

    I am using Entity framework 5 , MVC 4, ODAC 12.1.0.1.2 ,.Net framework 4.5

    Both my local machine and server are x64 bit operating system.


satya chenna

解决方案

Hi satya chenna,

Thank you for posting in MSDN forum.

Please see:Error: Unable to find the requested .Net Framework Data Provider. It may not be installed.

You could have a try with following workaround:

1. Uninstall and re-install .NET framework 4.5.

2. Restart the server

3. Refer to this link to edit the machine.config file remove the extra entry of DbProviderFactories

4. restart the server.

If any problem persists, since this forum is discussing about the .Net Framework Setup and Servicing,  as your issue is related to MVC and connect to database om server , I recommend you post a new thread to: https://forums.asp.net/1146.aspx/1?MVC  for a much professional support.

Thank you for your understanding.

Best Regards,


这篇关于ODAC 12.1.0.1.2无法连接到数据库om服务器,但可以在本地计算机上连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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