我检查了 CPU 编译选项并确保设置了任何 CPU。这是来自事件查看器的日志。
Application: QuickBooks-Sync.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Stack:
at System.Data.EntityClient.EntityConnection.GetFactory(System.String)
at System.Data.EntityClient.EntityConnection.ChangeConnectionString(System.String)
at System.Data.Objects.ObjectContext..ctor(System.String, System.String)
at LSTQBEntities.QBEntities..ctor()
at QuickBooks_Sync.Form1..ctor()
at QuickBooks_Sync.Program.Main()