signed


Exception connecting to SQL Server CE 4.0


When trying connecting to SQL Server CE 4.0 (SqlServerCe.dll, v2.0.50727), I get an exception (System.Data.Common.DbException) saying:
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.
All files are downloaded from microsoft.com
string localDataFile = Path.Combine(dataPath, "StorageData.sdf");
var connectionString = String.Format("Data Source={0}", localDataFile);
if (!File.Exists(localDataFile))
{
SqlCeEngine engine = new SqlCeEngine(connectionString);
engine.CreateDatabase();
engine.Dispose();
}
var connection = new SqlCeConnection(connectionString); <----Here the exception occures
StorageContext context = new StorageContext(connection);
return context;
System:
Windows 7
Visual Studio 2010
.NET 4.0
Any ideas?
UPDATE:
Reinstalling the following files has fixed the problem:
SSCERuntime_x64-ENU.exe
SSCEVSTools-ENU.msi
Thanks for trying to help!
I encountered this error today while helping one of our customers with a problem in our software:
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.
Our software was trying to create and initialize a Windows CE database. I bypassed the issue by setting the following registry key described by this Microsoft KB article:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing
I looked for the value "State". It did not exist, so I created a DWORD value and set it to 23e00. This corresponds to the Internet Options / Advanced setting "Check for publisher’s certificate Revocation" being unchecked (see the linked KB article above).
This may not be the best solution for you or other readers, but I wanted to record it for future reference.

Related Links

anyone know a signed kext will expire(not working) after Apple Developer membership expires?
converting signed 255 into 8-bit twos complement
Converting from 8 bit to 16 bit
Exception connecting to SQL Server CE 4.0

Categories

HOME
rust
firebase
keyboard
blast
focus
bots
scroll
mousemove
compilation
plaid
apk
websocket
nsis
cryptography
mathematical-optimization
fogbugz
greasemonkey
implicit-conversion
fedora
sharepoint-online
roku
mpu6050
jpa-2.0
orange-api
fresco
google-sites
jaspersoft-studio
infrared
gitkraken
kamailio
multi-upload
generator
acl
spreadsheetgear
python-imageio
basex
php-5.3
phpstorm-2016.1
windows2012
cloudera-manager
winrm
adminer
directfb
django-crispy-forms
cloudera-quickstart-vm
task-parallel-library
grails-spring-security
bit-shift
jenkins-slave
dredd
return-type
hibernate-ogm
amazon-elastic-beanstalk
redisson
punctuation
winmerge
clrs
network-protocols
nitrousio
scheduledexecutorservice
wicked-pdf
adjacency-list
exists
urbit
android-async-http
gravatar
in-app-billing
dsa
hmisc
blockquote
360-degrees
ngcordova
subfolder
subview
fiware-bosun
baseadapter
comctl32
configurable-product
adwords-apiv201402
nidaqmx
treeline
django-settings
mft
progress-db
mousemotionlistener
ax
microformats
xs
icenium
dojo-1.9
image-formats
system-information
taskkill
asp.net-mvc-views
mongrel2
turbine
eaccelerator
urchin
facebook-fbml
dm
html-components
firephp
main-method
gtktextview
bindable-linq

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App