Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted
Updated 8-Feb-13 19:58pm
v2
Comments
Sandeep Mewara 8-Feb-13 15:33pm    
Right .NET framework version?
cs101000 9-Feb-13 1:56am    
4

This error usually means that the assembly was not found. Try verifying that the file exists in the directory where your application is running.

Try these steps:

--> 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
 
Share this answer
 
Comments
cs101000 11-Feb-13 3:39am    
Thanks for the reply. I changed version number in web.config file. Now I get this error instead. Would you have a look at it?
http://www.codeproject.com/Questions/543601/Accessplusisplusdenied-plus-ExceptionplusfromplusH

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900