我在运行我编写的构建的.NET应用程序时遇到了问题:
我的应用程序使用最新的MySql连接器,它安装在我的系统上,并在我尝试将其作为引用添加时显示为.NET 4框架组件。
当我在环境中以调试模式运行我的应用程序时,一切都运行得很好,但是当我尝试将它作为一个独立的应用程序直接从"release“文件夹中运行时,我得到了以下异常:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969
c44d' or one of its dependencies. The system cannot find the file specified.你知道我该怎么解决这个问题吗?
发布于 2011-09-01 18:25:25
尝试:
听起来您的程序集在全局程序集缓存中,但并未随应用程序生成输出一起提供。
发布于 2011-09-01 18:20:40
尝试删除.net框架的temp文件夹中出现的所有MySQL.data.dll,并参见。
https://stackoverflow.com/questions/7268924
复制相似问题