.NET中的缺少引用是什么意思。应该如何解决呢?

来源:百度知道 编辑:UC知道 时间:2024/06/07 07:56:37
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误信息: CS0234: 命名空间“ZySqlDataBase”中不存在类型或命名空间名称“ZySqlDataBase”(是缺少程序集引用吗?)

源错误:

行 14: private int PageSize, RecordCount, PageCount, CurrentPage, Tid;
行 15: private string cmdText = "";

行 16: ZySqlDataBase.ZySqlDataBase obj = new ZySqlDataBase.ZySqlDataBase();
这个错误了吗?因为是红色的

行 17: ZyTypeClass.BLL.BLLZyTypeClass ztc = new ZyTypeClass.BLL.BLLZyTypeClass();

因为这句错了ZySqlDataBase.ZySqlDataBase obj = new ZySqlDataBase.ZySqlDataBase();

没有添加ZySqlDataBase.ZySqlDataBase这个类相应的应用,找一下DLL添加进来即可

缺少引用 添加USING 语句就好了 具体看你用什么命名空间了 用了哪些

缺少你就添加...

你把光标焦点移到类上面.然后shift+alt+F10添加引用.