.NET的exe不接DLL依赖 [英] .NET exe not picking dll dependencies

查看:271
本文介绍了.NET的exe不接DLL依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个EXE再次:)

现在的问题是它的SQLite refernces dll文件,所以我包括在同一路径上的文件。现在,在Windows 8中运行良好,但是在Windows 7是不是

该错误是

  

System.IO.FileLoadException:未能加载文件或程序集System.Data.SQLite,版本= 1.0.90.0,文化=中性公钥= db937bc2d44ff139或它的某一个依赖。该应用程序未能启动,因为其副作用并排配置不正确。请参阅应用程序事件日志,或使用命令行sxstrace.exe工具,更多的细节。 (从HRESULT异常:0x800736B1)   文件名:System.Data.SQLite,版本= 1.0.90.0,文化=中性公钥= db937bc2d44ff139'---> System.Runtime.InteropServices.COMException(0x800736B1):应用程序未能启动,因为它并排机端配置不正确。请参阅应用程序事件日志,或使用命令行sxstrace.exe工具,更多的细节。

我做的一切我可以,但它不是在Windows 7

运行

这是一个独立的EXE。没有安装。

编辑: 这是应用程序事件日志中说:

  

激活上下文生成失败的C:\ System.Data.SQLite.dll。相关大会Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195"不能找到。请使用sxstrace.exe进行详细诊断。

解决方案

我认为是原因正如你所说,SQLLite正在寻找64位的dll!

尝试下载64位的URL和EXE包装好

您可以从这里下载 http://system.data.sqlite.org/index的.html / DOC /主干/网络/ downloads.wiki

I have developed an EXE again :)

The problem is it has refernces of SQLite dll file so I included the file on the same path. Now in Windows 8 it is running fine, but in Windows 7 it is not

The error is

System.IO.FileLoadException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.90.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (Exception from HRESULT: 0x800736B1) File name: 'System.Data.SQLite, Version=1.0.90.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' ---> System.Runtime.InteropServices.COMException (0x800736B1): The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

I did everything I could but it is not running on Windows 7

It's a standalone EXE. No Setup.

EDIT: This is what application event log says

Activation context generation failed for "C:\System.Data.SQLite.dll". Dependent Assembly Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195" could not be found. Please use sxstrace.exe for detailed diagnosis.

解决方案

I think thats the reason as you mentioned, SQLLite is searching 64 bit dll!

Try to download 64 bit url and pack it with exe

You can download from here http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

这篇关于.NET的exe不接DLL依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆