简体   繁体   English

ASP.Net MVC-5 / EF-6 sln在Visual Studio 2015中工作,在VS 2017中失败

[英]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.

相关问题 (asp.net)Visual Studio 2017中缺少MVC模板 - (asp.net) MVC Template is missing in Visual Studio 2017 如何在Visual Studio 2015中创建ASP.NET MVC 4项目 - How to Create an ASP.NET MVC 4 project in visual studio 2015 VS 2015 ASP.NET Web API(EF6)和Xamarin Enable-Migrations失败 - VS 2015 ASP.NET Web API (EF6) & Xamarin Enable-Migrations fails Visual Studio 2017 不会在 ASP.NET Core MVC 项目中创建新的空 MVC 控制器 - Visual Studio 2017 does not create a new empty MVC controller in ASP.NET Core MVC project ASP.NET MVC-5服务器端验证不起作用 - ASP.NET MVC-5 sever side validation not working 在asp.net mvc-5中获取HtmlHelper / Razor中的错误 - Getting error in HtmlHelper/Razor in asp.net mvc-5 ASP.NET MVC-5控制器中的绑定模型 - Binding models in ASP.NET MVC-5 controller 可以使用asp.net mvc-5 中的ViewModel 登录吗? - Can ViewModel in asp.net mvc-5 be used for login? 更改asp.net mvc-5中的资源类型属性 - Change Resource Type property in asp.net mvc-5 Visual Studio 2017中的ASP.NET Core Angular模板无法使用“ SyntaxError:意外令牌”生成 - ASP.NET Core Angular template in Visual Studio 2017 fails to build with “SyntaxError: Unexpected token”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM