System.Data.SQLite Windows x64 安装失败;无法加载文件或程序集或依赖项错误
我下载了 64 位 Windows SQLite 安装可执行文件以安装在我的 Windows 7 x64 计算机上:
sqlite-netFx40-setup-bundle-x64-2010-1.0.78.0.exe
(11.60 MiB)
并运行安装程序。它因以下错误而失败:
Could not open
HKEY_LOCAL_MACHINE\Software\Microsoft\.NET Framework\v4.0.30319\AssemblyFoldersEx
“v4.0.30319”下面没有“AssemblyFoldersEx”键。因此,我在那里创建了密钥并重新运行设置,这次完成且没有错误。
但是,当我尝试添加引用时,System.Data.SQLite 没有出现在 .NET 选项卡上的组件列表中。
下一步的故障排除步骤是什么?谢谢
I downloaded the 64-bit Windows SQLite setup executable to install on my Windows 7 x64 machine:
sqlite-netFx40-setup-bundle-x64-2010-1.0.78.0.exe
(11.60 MiB)
and ran the setup. It failed with this error:
Could not open
HKEY_LOCAL_MACHINE\Software\Microsoft\.NET Framework\v4.0.30319\AssemblyFoldersEx
There was no "AssemblyFoldersEx" key beneath "v4.0.30319". So I created the key there and re-ran the setup, which completed this time without error.
However, when I try to add the reference, System.Data.SQLite does not appear in the list of components on the .NET tab.
What would be the next troubleshooting step? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于
VS2010
是Win32
而不是x64
,因此您需要安装Win32
安装程序才能获得设计时支持。您仍然可以在应用程序中使用x64
二进制文件,仅VS 集成需要Win32
。Since
VS2010
isWin32
and notx64
, you need to install theWin32
setup to get design-time support. You can still use thex64
binaries with your application, theWin32
is only needed for VS integration.是的,您需要安装 Win32 SQLite 以获得设计时支持;下载并执行 32 位安装程序 (sqlite-netFx40-setup-bundle-x86-xx.xxxexe) 后,如果您仍然遇到相同的错误,您可以运行 VS 设计器组件 32 位安装程序,而不通过以下步骤检查选项:
命令说明:
使用“corflags”工具(.NET SDK 的一部分)将“Installer.exe”工具标记为仅限 32 位
生成任何强名称密钥对(任何密钥对 SNK 文件都可以在此处使用)
使用上面生成的强名称密钥对重新签名“Installer.exe”程序集
使用必要的标志运行安装程序,但最重要的是输入“-confirm true”;因为这是 SQLite 安装程序所需的标志,它阻止用户通过直接在 Windows 资源管理器中单击 installer.exe 来执行安装程序。
Yes, you need to install Win32 SQLite for design time support; after download and executed 32bit setup (sqlite-netFx40-setup-bundle-x86-x-x.x.x.x.exe), if you still facing the same error you can run the VS designer components 32bit installer without the option checked by following steps:
Command explaination:
Using the "corflags" tool (part of the .NET SDK), flag the "Installer.exe" tool as 32-bit only
Generate any strong name key pair (Any key pair SNK file will work here)
Re-sign the "Installer.exe" assembly using the above generated strong name key pair
Run installer with neccessary flags, but the most important is to put in '-confirm true'; as this is the needed flag for SQLite installer which prevent user execute setup by clicking the installer.exe directly in windows explorer.