Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.
RSS
I uploaded a website on godaddy. When i run a specific webpage that connects to the sdf database i get this error: "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)" Why is this, and how to get rid of it?
Did you upload that dll in your /bin folder on your website? If you did not, you are referencing the file located in the server's assembly. It sounds like they have a different version of SQL CE installed on the server than what your application was built with.
Your web will always look to its local /bin directory for assemblies, so by uploading that dll as part of your web, you will remove any other dependencies on the server itself.
Yes i uploaded. If the dll file is not there than i get this error : System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider. Web.config :
dow7
31 Posts
Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, Publi...
Apr 11, 2012 04:20 PM|LINK
terridonahue
486 Posts
Re: Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, P...
Apr 11, 2012 06:20 PM|LINK
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
dow7
31 Posts
Re: Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, P...
Apr 11, 2012 09:14 PM|LINK
dow7
31 Posts
Re: Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, P...
Apr 12, 2012 10:00 AM|LINK