[英]ASP.Net MVC-5/EF-6 sln works in Visual Studio 2015, fails in VS 2017
I have an MVC-5/EF-6 ASP.Net project/sln that builds without error and runs correctly in Visual Studio 2015. When I build the solution in Visual Studio 2017, I get the following error message: 我有一个MVC-5 / EF-6 ASP.Net项目/ sln,该项目可以正确生成并且可以在Visual Studio 2015中正常运行。在Visual Studio 2017中生成解决方案时,出现以下错误消息:
Error 175: The ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client' is either not registered in the machine or application config file, or could not be loaded. 错误175:具有不变名称'Oracle.ManagedDataAccess.Client'的ADO.NET提供程序未在计算机或应用程序配置文件中注册,或者无法加载。 See the inner exception for details. 有关详细信息,请参见内部异常。 Nissan D:\\home\\Nissan\\Website\\Nissan\\EnitityModel\\Nissan.edmx 日产D:\\ home \\ Nissan \\ Website \\ Nissan \\ EnitityModel \\ Nissan.edmx
Also, the project fails to run, and the edmx viewer cannot open. 另外,项目无法运行,并且edmx查看器无法打开。 From NuGet, the project uses (among other things): Package Installed Version Latest Version EntityFramework v6.2.0-beta1 v6.2.0-beta1 Oracle.ManagedDataAccess v12.1.24160719 v12.2.2.1100 Oracle.ManagedDataAccess.EntityFramework v12.1.2400 v12.2.2.1100 在NuGet中,该项目使用(其中包括):软件包安装版本最新版本EntityFramework v6.2.0-beta1 v6.2.0-beta1 Oracle.ManagedDataAccess v12.1.24160719 v12.2.2.1100 Oracle.ManagedDataAccess.EntityFramework v12.1.2400 v12.2.2 .1100
All NuGet packages are up-to-date except the 2 Oracle.ManagedDataAccess packages. 除2个Oracle.ManagedDataAccess软件包外,所有NuGet软件包都是最新的。 If I update them, project still builds and runs using VS 2015, but I can no longer view the edmx file ("Cannot load Nissan.edmx: Exception has been thrown..."). 如果我更新它们,则项目仍将使用VS 2015生成并运行,但是我将无法再查看edmx文件(“无法加载Nissan.edmx:引发异常...”)。 Any idea what is keeping my project from building in VS 2017? 知道什么使我的项目无法在VS 2017中构建吗?
我通过安装适用于Visual Studio 2017的Oracle开发人员工具解决了此问题。
您需要安装适用于Visual Studio 2017的Oracle Developer Tools。在此处下载链接: http : //www.oracle.com/technetwork/topics/dotnet/downloads/odacmsidownloadvs2017-3806459.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.