无法加载文件或程序集'System.Data.SqlServerCe [英] Could not load file or assembly 'System.Data.SqlServerCe
问题描述
嗨!我试图发布我使用sql server CE的网站,我得到这个:
无法加载文件或程序集''System.Data.SqlServerCe,Version = 4.0 .0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91''或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)
造成这种情况的原因是什么?我做了一些搜索,但我没有明确得到我必须上传的dll以及在哪里。我是否必须进行特定配置才能解决此问题?
Hi! I am trying to publish my website which uses sql server CE and I get this:
Could not load file or assembly ''System.Data.SqlServerCe, Version=4.0.0.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)
What is causing this? I did some search but I didnt clearly get what dlls I have to upload and where to. Do I have to do specific configuration to get this fixed?
推荐答案
您好,
看看这里:
http ://social.msdn.microsoft.com/Forums/en-US/sqlce/thread/6380d071-3a59-45aa-8c09-d6f068189df4/ [ ^ ]
此错误通常表示未找到程序集。尝试验证文件是否存在于运行应用程序的目录中。
This error usually means that the assembly was not found. Try verifying that the file exists in the directory where your application is running.
- >将DLL复制到桌面上的其他位置。
- >从项目中删除引用,并从BIN中删除DLL。
- >将DLL复制到项目根目录。
- >添加引用并从root中选择DLL。
- >构建并尝试运行。
--> Copy DLL to some other location as on Desktop.
--> Delete reference from project and also delete the DLL from BIN.
--> Copy the DLL to project root.
--> Add reference and choose the DLL from root.
--> Build and try running.
--Amit
--Amit
这篇关于无法加载文件或程序集'System.Data.SqlServerCe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!