The type or namespace name 'MySql' could not be found .net 连接 MySql时的错误

The type or namespace name 'MySql' could not be found.
-------------
if the IDE is vs.net then you copy the dll into C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 or the newest version of the .NET framework you have in the Framework folder, could be v1.0.3705, just depends what version you have in there. Copy the dll in there and add the reference in the VS.NET IDE by going to project, add reference, then select file
-------------
Build Solution时遇到的该错误,原因是我只把这个dll放在bin下,并且Add Reference添加了该dll,但这不够,应该把该dll放在C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
这个文件夹下!
这样Add Reference时就能在.NET 选项卡下看到MySql.Data
-------------
In SharpDevelop (the IDE I know) you need to reference the MySQL GAC entry (right click on reference in the project tree view, click add, then find the MySql dll in the GAC).
-------------
这个dll是从网上下载到的,260K大小。

posted on 2009-10-08 13:16  simhare  阅读(1807)  评论(0编辑  收藏  举报

导航