System.DllNotFoundException: Unable to load DLL 'sqlceme35.dll': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
A company we're providing software to has decided to only install .NET 4.0 on their computers. No 3.5 SP1 or 2.0, just 4.0. Our software which previously targeted 3.5 SP1 would no longer run and we think it had to do with .NET 4.0 update the
CLR from 2.0 to 4.0.
So we've upgraded to Visual Studio 2010 and we're now targeting .NET 4.0 with our code. We've made this build on a 64-bit computer and set the Target cpu to x86 in the build and in every project. The program compiles fine in Visual Studio 2010
on a computer with only .NET 4.0 installed. It is only the build which appears to be the issue.
Here is the issue. We're getting a DDL not found exception for SQL Server CE, but only when the computer had only .NET 4.0 installed. If we have 2.0 or 3.5 SP1 installed the program works fine. We're using a private deployment of SQL Server
CE. So all the dlls are in our programs file directory including the file which can't be found.
Any ideas why this may be happening? We also tried installing SQL Server CE 4.0 CTP and we get the same
View Complete Post