我正在使用WPF。當我試圖在代碼中聲明SQLiteConnection
,問題的產生─「類型'TestWPF.MainWindow'上與指定的綁定約束匹配的構造函數的調用引發異常。」 - 如何解決這個問題?
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.
誰能告訴我,如何解決它?
請顯示所提到的構造函數的代碼。它看起來像你試圖加載一個文件作爲不是.NET程序集的程序集。 –