[英]Deploy application without install SQL Server CE error
I'm trying to deploy a desktop application (wpf) that uses an external .dll that defines the logical model. 我正在尝试部署一个桌面应用程序(wpf),它使用定义逻辑模型的外部.dll。 In this external library the model is defined using EntityFramework.
在此外部库中,使用EntityFramework定义模型。 In the wpf application I use SQL Server CE as database using this
app.config
info: 在wpf应用程序中,我使用此
app.config
信息将SQL Server CE用作数据库:
<connectionStrings>
<add name="SomeManager"
connectionString="Data Source=Database/SomeDatabase-20130220200325.sdf"
providerName="System.Data.SqlServerCE.4.0"/>
</connectionStrings>
I want that the final client doesn't need to install SQL Server CE in his machine, so I want include the libraries CE libraries into my finall folder. 我希望最终客户端不需要在他的机器上安装SQL Server CE,所以我想将库CE库包含到我的finall文件夹中。 I know it is possible due in the MSDN they give a solution for it.
我知道它有可能在MSDN中为它提供解决方案。 Copying the seven files of SQL Server CE 4 on the finall folder, and also the
System.Data.SqlServerCE.dll
file. 在finall文件夹上复制SQL Server CE 4的七个文件,以及
System.Data.SqlServerCE.dll
文件。 I do this, but for some reason the application still is trying to get the libraries from the system, and not from the local application folder, so when I run the app in a machine without the SQL Server CE 4 installed, it doesn't runs. 我这样做,但由于某种原因,应用程序仍然试图从系统中获取库,而不是从本地应用程序文件夹,所以当我在没有安装SQL Server CE 4的机器上运行应用程序时,它不会运行。
What could fix this problem, I will appreciate any ideas. 什么可以解决这个问题,我会感激任何想法。 Thanks...
谢谢...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.