ompact Framework C#,SQL Ce,错误System.Data.SqlServerCe [英] ompact Framework C#, sql Ce, error System.Data.SqlServerCe

查看:68
本文介绍了ompact Framework C#,SQL Ce,错误System.Data.SqlServerCe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.....

我正在使用Compact Framework(c#)和SQL CE.如果我运行紧凑型框架应用程序,则会显示错误:

Hello.....

I am working on Compact Framework (c#) and SQL CE . if i run my compact framework application it showing error :

System.IO.FileLoadException: Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'







谢谢.....




Please


Thank You.....

推荐答案

错误消息非常清楚,您的应用程序无法加载System.Data.SqlServerCe程序集或其依赖项之一.我会:

1.检查文件系统上System.Data.SqlServerCe的版本和密钥是否与给定的版本和密钥相对应.
2.如果确实检查不能加载哪个程序集(依赖SqlServerCe).例如,通过使用进程监视器.
The error message is quite clear, your application cannot load the System.Data.SqlServerCe assembly or one of its dependencies. I would:

1. Check if the version and key of the System.Data.SqlServerCe on your file system correspond with the given version and key.
2. If it does check which assembly (dependency of SqlServerCe) it cannot load. For example, by using Process Monitor.


在这里

^ ]
Here you go

Troubleshooting: Privately deploying the SQL Server Compact 3.5 SP2 ADO.NET Entity Framework provider (System.Data.SqlServerCe.Entity.dll) in the application folder does not work[^]


这篇关于ompact Framework C#,SQL Ce,错误System.Data.SqlServerCe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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