未指定错误 sqlcese40.dll
Error not specified sqlcese40.dll
我已经为我的客户部署了我的应用程序。发生的情况是,我已经在 4 台不同的计算机上测试了我的应用程序并且运行良好,但在我的客户计算机上却没有。
我在带有 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)
所以连接数据库时出现错误。任何线索我错过了什么?
已解决.
我什至无法在我的客户 PC 上卸载 .NET Framework 4.7,因为我收到以下错误:
The cryptographic operation failed due to a local security option
setting
在寻找有关此错误的答案后,我最终访问了 Microsoft 网站 https://support.microsoft.com/en-us/help/2715304/error-message-when-you-try-to-validate-a-copy-of-windows-the-cryptogra 并按照他们所说的那样在 regedit 上执行了步骤。
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
更改注册表值后,我的应用立即开始运行!
我已经为我的客户部署了我的应用程序。发生的情况是,我已经在 4 台不同的计算机上测试了我的应用程序并且运行良好,但在我的客户计算机上却没有。
我在带有 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)
所以连接数据库时出现错误。任何线索我错过了什么?
已解决.
我什至无法在我的客户 PC 上卸载 .NET Framework 4.7,因为我收到以下错误:
The cryptographic operation failed due to a local security option setting
在寻找有关此错误的答案后,我最终访问了 Microsoft 网站 https://support.microsoft.com/en-us/help/2715304/error-message-when-you-try-to-validate-a-copy-of-windows-the-cryptogra 并按照他们所说的那样在 regedit 上执行了步骤。
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
更改注册表值后,我的应用立即开始运行!