2017-10-04 244 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

更改注册表值后,我的应用程序立即开始工作!