c# - "The invocation of the constructor on type ' TestWPF.MainWindow ' that matches the specified binding constraints threw an exception."- 如何解决这个问题?

标签 c# wpf exception

我正在使用 WPF。当我试图在代码中声明 SQLiteConnection 时,问题出现了-

The invocation of the constructor on type 'TestWPF.MainWindow' that matches the specified binding constraints threw an exception.

InnerException: Make sure that the file is a valid .NET Framework assembly.

谁能告诉我,如何解决?

最佳答案

如果您在异常窗口中单击查看详细信息...,您可以查看InnerException。展开该节点,您将确切地看到哪里出了问题。

关于c# - "The invocation of the constructor on type ' TestWPF.MainWindow ' that matches the specified binding constraints threw an exception."- 如何解决这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8987091/

相关文章:

c# - 复制到 Debug 文件夹的文件会在 C# 程序启动时自动删除

wpf - 按钮的前景在属性触发器中没有改变

c# - 在 C# 中捕获 COM 异常的最佳实践是什么?

c# - linq to sql查询帮助——常用值

c# - 我想在 GridView 中编辑我的表格

javascript - url 编码组件未进入字符串服务器端

c# - 为什么 CheckedListBox DisplayMember 不显示?

c# - 如何在不阻塞 UI 的情况下顺序运行多个任务?

visual-studio - Visual Studio 2012 上的 Env.DTE 使用有时会引发 MK_E_UNAVAILABLE

C# 忽略异常的最佳方法