C# 带有SQlite项目的Windows窗体在Visual Studio中运行良好。但安装时的安装文件显示异常 有关调用的详细信息,请参阅此消息的结尾 即时(JIT)调试,而不是此对话框。 **************例外文本************** System.IO.FileNotFoundException:无法加载文件或程序集 'SQLite.NET,版本=0.21.1869.3794,区域性=neutral, PublicKeyToken=c273bd375e695f9c'或其依赖项之一。系统 找不到指定的文件。 文件名:'SQLite.NET,版本=0.21.1869.3794,区域性=neutral, PublicKeyToken=c273bd375e695f9c' 在WindowsFormsApplication1.Form1.button1\u单击(对象发送者,事件参数 (e) 在System.Windows.Forms.Control.OnClick(EventArgs e)中 在System.Windows.Forms.Button.OnClick(EventArgs e)中 在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs-mevent)上 在System.Windows.Forms.Control.WmMouseUp(Message&m,MouseButtons)中 按钮,Int32次单击) 位于System.Windows.Forms.Control.WndProc(Message&m) 位于System.Windows.Forms.ButtonBase.WndProc(Message&m) 在System.Windows.Forms.Button.WndProc(Message&m)中 在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)中 在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)中 在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd、Int32 msg、IntPtr wparam,IntPtr lparam) 警告:程序集绑定日志记录已关闭。 要启用程序集绑定失败日志记录,请设置注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)到1。 注意:有一些与程序集绑定相关的性能损失 故障记录。 要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。 **************加载的程序集************** mscorlib 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- Windows窗体应用程序1 程序集版本:1.0.0.0 Win32版本:1.0.0.0 代码库:file:///C:/Users/Public/Desktop/WindowsFormsApplication1.exe ---------------------------------------- System.Windows.Forms 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/ v4.0_4.0.0.0_b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- 系统 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/ v4.0_4.0.0.0_b77a5c561934e089/System.dll ---------------------------------------- 系统图 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/ v4.0_4.0.0.0_b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- 系统配置 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/ v4.0_4.0.0.0_b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- 系统核心 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/ v4.0_4.0.0.0_b77a5c561934e089/System.Core.dll ---------------------------------------- 命名空间 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/ v4.0_4.0.0.0_b77a5c561934e089/System.Xml.dll ---------------------------------------- **************JIT调试************** 要启用即时(JIT)调试,请为 应用程序或计算机(machine.config)必须具有 在system.windows.forms节中设置的值。 应用程序还必须通过调试进行编译 启用。 例如: 启用JIT调试时,任何未处理的异常 将发送到计算机上注册的JIT调试器 而不是由此对话框处理。

C# 带有SQlite项目的Windows窗体在Visual Studio中运行良好。但安装时的安装文件显示异常 有关调用的详细信息,请参阅此消息的结尾 即时(JIT)调试,而不是此对话框。 **************例外文本************** System.IO.FileNotFoundException:无法加载文件或程序集 'SQLite.NET,版本=0.21.1869.3794,区域性=neutral, PublicKeyToken=c273bd375e695f9c'或其依赖项之一。系统 找不到指定的文件。 文件名:'SQLite.NET,版本=0.21.1869.3794,区域性=neutral, PublicKeyToken=c273bd375e695f9c' 在WindowsFormsApplication1.Form1.button1\u单击(对象发送者,事件参数 (e) 在System.Windows.Forms.Control.OnClick(EventArgs e)中 在System.Windows.Forms.Button.OnClick(EventArgs e)中 在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs-mevent)上 在System.Windows.Forms.Control.WmMouseUp(Message&m,MouseButtons)中 按钮,Int32次单击) 位于System.Windows.Forms.Control.WndProc(Message&m) 位于System.Windows.Forms.ButtonBase.WndProc(Message&m) 在System.Windows.Forms.Button.WndProc(Message&m)中 在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)中 在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)中 在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd、Int32 msg、IntPtr wparam,IntPtr lparam) 警告:程序集绑定日志记录已关闭。 要启用程序集绑定失败日志记录,请设置注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)到1。 注意:有一些与程序集绑定相关的性能损失 故障记录。 要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。 **************加载的程序集************** mscorlib 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- Windows窗体应用程序1 程序集版本:1.0.0.0 Win32版本:1.0.0.0 代码库:file:///C:/Users/Public/Desktop/WindowsFormsApplication1.exe ---------------------------------------- System.Windows.Forms 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/ v4.0_4.0.0.0_b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- 系统 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/ v4.0_4.0.0.0_b77a5c561934e089/System.dll ---------------------------------------- 系统图 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/ v4.0_4.0.0.0_b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- 系统配置 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/ v4.0_4.0.0.0_b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- 系统核心 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/ v4.0_4.0.0.0_b77a5c561934e089/System.Core.dll ---------------------------------------- 命名空间 程序集版本:4.0.0.0 Win32版本:4.6.1087.0生成者:NETFXREL4STAGE 代码库: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/ v4.0_4.0.0.0_b77a5c561934e089/System.Xml.dll ---------------------------------------- **************JIT调试************** 要启用即时(JIT)调试,请为 应用程序或计算机(machine.config)必须具有 在system.windows.forms节中设置的值。 应用程序还必须通过调试进行编译 启用。 例如: 启用JIT调试时,任何未处理的异常 将发送到计算机上注册的JIT调试器 而不是由此对话框处理。,c#,asp.net,winforms,visual-studio,C#,Asp.net,Winforms,Visual Studio,我正在使用SQlite数据库并安装了所需的一切。该项目在VisualStudio中运行良好。但是,当安装文件在我的机器上构建并运行时,它会引发此异常 我只是不明白这个警告消息是什么。我应该打开程序集绑定日志记录吗?或者别的什么?您能检查您的程序集“SQLite.NET”属性Copy Local是否正确吗 如果是,您也可以检查 See the end of this message for details on invoking just-in-time (JIT) debugging inst

我正在使用SQlite数据库并安装了所需的一切。该项目在VisualStudio中运行良好。但是,当安装文件在我的机器上构建并运行时,它会引发此异常


我只是不明白这个警告消息是什么。我应该打开程序集绑定日志记录吗?或者别的什么?

您能检查您的程序集“SQLite.NET”属性Copy Local是否正确吗

如果是,您也可以检查

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 
'SQLite.NET, Version=0.21.1869.3794, Culture=neutral, 
PublicKeyToken=c273bd375e695f9c' or one of its dependencies. The system 
cannot find the file specified.
File name: 'SQLite.NET, Version=0.21.1869.3794, Culture=neutral, 
PublicKeyToken=c273bd375e695f9c'
   at WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs 
e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons 
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr 
wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind 
failure logging.
To turn this feature off, remove the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: 
file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsFormsApplication1
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Public/Desktop/WindowsFormsApplication1.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: 
 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/
v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: 
 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/
v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: 
 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/
v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: 
file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/
v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: 
file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/
v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: 
file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/
v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


替换上部配置中的程序集名称和版本。

我应该在哪里添加此配置?
我已替换它。但即使这样,它也不起作用。同样的错误再次显示。您需要在配置->运行时->组装绑定下将其添加到配置文件中
<dependentAssembly>  
    <assemblyIdentity name="someAssembly"  
      publicKeyToken="32ab4ba45e0a69a1"  
      culture="en-us" />  

    <bindingRedirect oldVersion="7.0.0.0" newVersion="8.0.0.0" />  
  </dependentAssembly>