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,导致冲突并产生报错,打开任何一个页面都报错
相关文章
- 解决Could not load file or assembly CefSharp.Core.dll的问题
- Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0 系统找不到指定的文件。
- 解决方法:Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
- 无法添加数据连接。Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0
- Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies
- Keil出现Error:Flash Download failed - Could not load file错误 解决点拨
- SQLite 解决:Could not load file or assembly \'System.Data.SQLite ... 试图加载格式不正确的程序(转)
- 解决Could not load file or assembly CefSharp.Core.dll的问题
- .net core qrcoder 发布后提示Could not load file or assembly System.Drawing.Common
- 遇到一个奇葩的问题,could not load the assembly file XXX downloaded from the Web