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