2015-12-05

「初始化字串的格式和開始於索引 0 的規格不相符的」問題

「初始化字串的格式和開始於索引 0 的規格不相符」

「Format of the initialization string does not conform to specification starting at index 0」


相信使用Entity Framework Code-First的開發者一定有人遇過,在本機開發環境做了Add-Migration XXX和Update-Database之後看起來都沒問題,發佈設定檔裡面也勾了啟用Code-First移轉,然後發佈到遠端主機上,開心的期盼.Net會自動更新資料庫,結果總是出現這個錯誤...