.net核心到sqlserverce问题 [英] .net core to sqlserverce issue

查看:60
本文介绍了.net核心到sqlserverce问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图连接sqlserverce(.sdf)文件使用.net核心控制台。但我继续得到以下错误。而相同的代码在.net
框架中正常工作。任何人都可以建议我是什么问题。

'System.Data.SqlServerCe.KillBitHelper'的类型初始值设定项引发异常。 ---> System.IO.FileNotFoundException:无法加载文件或程序集
'System.Security.Permissions

下面是我的代码,只要调试器输入sqlceconnection它投掷上述错误。

Below is my code, as soon as the debugger enter sqlceconnection it is throwing the above erro.




推荐答案

不确定是否< a href ="https://stackoverflow.com/questions/48824404/net-core-to-sqlserverce-issue">
这个就是你,但情况可能就是这样。只有一种方法可以尝试使用另一个或同一个项目中的完整框架。
Not sure if this is you but that may be the case. Only one way to find out is to try this using the full framework in another or same project.


这篇关于.net核心到sqlserverce问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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