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
opencart
adfs3.0
android-fragments
long-integer
writefile
enums
activex
systemd
compilation
magento-2.0
sentry
gprs
graphql-js
sympy
telegraf
wine
migrate
match
nexus3
nsstring
fbloginview
buffer
grocery-crud
bundler
cuba-platform
texas-instruments
scala-ide
robolectric
string-formatting
error-logging
el
amazon-sns
animated-gif
jstree
managed-c++
web-config-transform
introspection
plyr
android-cardview
sap-lumira
gravity-forms-plugin
tortoisehg
bitbake
fusion
mdns
jsonresult
progid
lxml
om-next
advanced-filter
counting
polyml
buildforge
dreamfactory
djcelery
uivisualeffectview
android-alarms
assemblies
right-click
jqgrid-asp.net
react-intl
ssi
icecast
cordova-ios
renderman
rcharts
ipywidgets
nclam
dpkg
wicked-pdf
textblock
mnesia
accessibilityservice
i2b2
univocity
management-studio-express
ioexception
flask-security
json-spirit
in-app-billing
self
directx-9
mixins
jnlp
sequence-sql
angular-amd
karma-coverage
textscan
kefir.js
tree-structure
whitespace-language
mgwt
jolie
fasterxml
oracle-adf-mobile
two.js
jini
screwturn
meteor-collections
air-native-extension
notifyjs
codahale-metrics
postgres-xc
hints
ldif
unicoins
web-frameworks
spiral
gprof
instance-variables
sfinae
websphere-6.1
image-scanner
yuidoc
litespeed
solandra
cassini
rtti
autobench
twitter-feed

Resources

Encrypt Message