看板 C_Sharp 關於我們 聯絡資訊
各位高手好,我在VS2008使用System.Data.SQLite static string SQLITE_DB = "C:\\Tables\\Table.db"; if (!File.Exists(SQLITE_DB)) SQLiteConnection.CreateFile(SQLITE_DB); sqlite_connect = new SQLiteConnection("Data source=" + SQLITE_DB); sqlite_connect.Open(); 在open階段程式就出錯了--> The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception 作業系統是WinXP簡體版。 在Winn7和WinXP繁體版有測試過都不會有問題,反而簡體版有問題,google了好久都無法解決, 想請問一下有人有相關經驗嗎?? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.15.205.64 ※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1510718415.A.532.html