2017-10-04 116 views
0

我已將我的應用程序部署到我的客戶。會發生什麼是我測試了我的應用程序在4個不同的計算機,並完美,但不是在我的客戶計算機。未指定錯誤sqlcese40.dll

我在使用SQL Compact的代碼中使用.NET Framework 4.0,並且客戶安裝了.NET Framework 4.7。爲了防萬一,我還在他的電腦中安裝了SQL Compact。

當我在我的應用程序點擊.exe文件顯示與以下文本的彈出錯誤:

System.Data.SqlServerCe.SqlCeException (0x80004005): Error not specified [ sqlcese40.dll ] 
    in System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr) 
    in System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent) 
    in System.Data.SqlServerCe.SqlCeConnection.Open() 
    in LongStoryShort.LoadAllByItems(String[] columns) 

連接到數據庫時,所以發生錯誤。任何線索我錯過了什麼?

回答

0

已解決

我甚至不能卸載.NET Framework 4.7中我的客戶PC,因爲我得到的錯誤:

The cryptographic operation failed due to a local security option setting

尋找答案這個錯誤我在微軟的網站https://support.microsoft.com/en-us/help/2715304/error-message-when-you-try-to-validate-a-copy-of-windows-the-cryptogra結束後,做了就像他們說的那樣在註冊表中的步驟。

This error occurs when the 'State' value of below mentioned registry key is incorrectly set. This value corresponds to the Internet Explorer security setting "Check for publisher’s certificate Revocation" and "Check for signatures on downloaded programs"

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing You can find a key with the name ‘State’. By default the values is set to – ‘23c00’ Resolution To resolve this problem, change the registry key to a valid setting, e.g.

State = 0x00023e00 - ‘Check for publisher’s certificate Revocation’ unchecked

State = 0x00023c00 - ‘Check for publisher’s certificate Revocation’ Checked

更改註冊表值後,我的應用程序立即開始工作!