在另一台机器上运行我的应用程序给我一个错误 [英] Running my application on another machine gives me an error

查看:102
本文介绍了在另一台机器上运行我的应用程序给我一个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

我的应用程序是一个C#Winforms实体框架/ SQLite驱动的桌面应用程序。 (流行语!)

My application is a C# Winforms Entity Framework/SQLite driven desktop app. (buzzwords!)

当我在机器上运行应用程序时,它可以正常工作而没有问题。但是当创建安装包并在另一台机器上运行时,我得到这个错误:

When I run the application on my machine, it works correctly without a problem. But when creating the installation package and running it on another machine, I get this errro:


System.ArgumentException:指定
商店提供商不能在配置中找到
,否则
有效。 ---> System.ArgumentException:
无法找到请求的.Net
框架数据提供程序。它可能不会
被安装。

System.ArgumentException: The specified store provider cannot be found in the configuration, or is not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.

我如何打包SQLite的数据提供者?我在我的机器上安装的唯一的事情是: http://sqlite.phxsoftware.com/

How can I 'package' the data provider for SQLite? The only thing I installed on my dev machine was this: http://sqlite.phxsoftware.com/

任何建议?

推荐答案

将sqlite引用设置为复制本地将其包含在您的包

Set the sqlite reference to copy local then include it in your package

这篇关于在另一台机器上运行我的应用程序给我一个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆