天天看點

Could not load file or assembly 'MySql.Data.CF,

Could not load file or assembly 'MySql.Data.CF, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047

I solved it. The problem is  due to dll problem. 

I copy the dll to bin folder then it works fine with no issue.

部落客的解決辦法 先在項目裡删除引用MySql.Data.CF ,然後到項目檔案夾删除bin下面的 MySql.Data.CF,貌似ASP.NET會自動讀取BIN下面的所有DLL,導緻沖突并産生報錯,打開任何一個頁面都報錯

繼續閱讀