I want to use SQL CE 4 in my WPF application. I've added the contents of SQLCE's Private/ folder to my project and modified the app.config, as described here. The application worked fine with SQL CE 4 before I switched to private deployment.
When I run the application, I get a SqlCeException, the message roughly translates to "The CRT binary in the application/bin folder is not signed and might pose a security risk. Put the original Microsoft CRT binary in the application/bin folder."
I used Windows Explorer to check all dll's in the x86/Microsoft.VC90.CRT and amd64/Microsoft.VC90.CRT folders, they are digitally signed.
Sometimes I get almost the same exception, but can't reproduce it deterministically. It's like 1 out of 20 times.
"The CRT binary present in application/bin folder is not signed and can be a potential security risk. Please place the original Microsoft CRT binary in application/bin folder."
The environment is: Visual Studio 2010 SP1, SQL CE 4 - Private install, WPF application, Windows Vista 32bit SP2
I have the same problem with two of my end-users. It looks like the problem could exists only the first time after system boot/reboot. Second attempt to establish the connection succeeds.
Both users are using: Microsoft Windows NT 6.1.7601 Service Pack 1