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
qt
xpath
paypal-ipn
scroll
plaid
twitter-fabric
nsis
implicit-conversion
ui-automation
gprs
lc3
solution
heuristics
tiff
business-intelligence
amazon-elb
texas-instruments
bnf
string-formatting
deepfreeze
node-webkit
connection-refused
sybase-ase
data-collection
laravel-4.2
region
unmarshalling
overwrite
om-next
ms-media-foundation
adminer
ng-repeat
django-smart-selects
icepdf
sendinput
music21
windows-media-player
roracle
android-5.0-lollipop
ilrepack
hibernate-ogm
jgrapht
simple-schema
test-data
lvalue
front-camera
logical
node-glob
univocity
wif4.5
godeps
fanotify
jnlp
org-babel
scala-macros
fuseesb
android-audiomanager
mutators
nhibernate-criteria
comctl32
symja
android-2.3-gingerbread
rpg
fileshare
spring-social-linkedin
iosched
rautomation
quickgraph
sly-scroller
office-app
coordinate
word-frequency
n-queens
grails-validation
ognl
mongrel
jdownloader
sscli
main-method
inversion
twitter-feed
levels

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