简体   繁体   English

使用EF和Oracle从控制台应用程序部署.exe失败

[英]Deploying .exe from console application using EF & Oracle failed

I'm trying to deploy my console application which mainly creates xml files from oracle tables. 我正在尝试部署主要从oracle表创建xml文件的控制台应用程序。 When I'm running the app on my machine (Windows 7 64-bit) through Visual Studio 2012, there is no problem. 通过Visual Studio 2012在计算机(Windows 7 64位)上运行应用程序时,没有问题。

My app is meant to run on a server which is using Windows Server 2008 R2 64-bit. 我的应用程序旨在在使用Windows Server 2008 R2 64位的服务器上运行。 So, I copied the .exe, the config file, the Entity Framework dll and the config file from the bin\\Debug project folder. 因此,我从bin \\ Debug项目文件夹中复制了.exe,配置文件,Entity Framework dll和配置文件。

When I'm running the .exe, I got that error message : 当我运行.exe时,出现了以下错误消息:

The specified store provider cannot be found in the configuration or is not valid 在配置中找不到指定的存储提供程序或该存储提供程序无效

Could someone help me on this? 有人可以帮我吗?

Actually, the problem was solved by targeting the Framework 4.0 instead of the 4.5 one (Right-Click on my project in the Solution Explorer, then properties to do that). 实际上,该问题是通过以Framework 4.0而不是4.5框架为目标解决的(在Solution Explorer中右键单击我的项目,然后通过属性来执行此操作)。 Didn't know that my prod machine wasn't able to run 4.5 .NET app. 不知道我的产品机器无法运行4.5 .NET应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Core 控制台应用程序与 EF Core 使用 dotnet run 命令运行时无法正常工作,引发身份验证失败异常 - .NET Core console application with EF Core is not working when run from using dotnet run command, throwing authentication failed exception 从.NET控制台应用程序打开.exe应用程序 - Open .exe application from .NET console application 控制台应用程序发布 exe - Console Application Release exe 从控制台应用程序exe在DLL中启动WPF应用程序 - Launch a WPF application in a DLL from a console application exe 使用 EF6 在控制台应用程序中调用存储过程时出现问题 - Problem when calling the Stored Procedure in Console application using EF6 从控制台应用程序调用时,为什么EF不更新对象? - Why would EF not update an object when called from Console application? 在服务器上部署c#控制台应用程序而无需实际安装oracle客户端 - Deploying c# console application on server without actually installing oracle client 使用.bat文件执行C#控制台应用程序(.exe) - Execute C# console application(.exe) using .bat file 使用控制台应用程序引用VB.net exe表单功能 - Using a console application to reference a VB.net exe form function 如何在控制台应用程序中使用 C# 运行 exe 文件 - How to run an exe file using C# in console application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM