在装配件(.dll)文件中使用IMPORTS到入名称空间总是提示出错(找不到),如何解决?急,高分!

在装配件(.dll)文件中使用IMPORTS到入名称空间总是提示出错(找不到)

比如用
imports system
没有提示错误

而用
imports system.data
imports system.data.oledb
时就提示
Namespace or type 'data' for the imports 'system.data' cannot be found
..............'oledb'............'system.data.oledb'........

请问是哪里出错了?如何解决?请高手指教!
[387 byte] By [lxfan-Fan] at [2008-2-16]
# 1
要在项目中添加引用。在资源管理器中,项目名称下面有个引用,点开看看有没有你需要添加的,没有的话就右击添加。
jamzh-Showmethemoney!!! at 2007-11-1 > top of Msdn China Tech,.NET技术,ASP.NET...
# 2
你是不是装的时候没有装完整?
# 3
同意楼上的!
gesnpt-gesnpt at 2007-11-1 > top of Msdn China Tech,.NET技术,ASP.NET...
# 4
8是啊,如果在普通ASPX页面中是可以使用的
lxfan-Fan at 2007-11-1 > top of Msdn China Tech,.NET技术,ASP.NET...
# 5
普通ASPX页面中是可以使用的?
那你又在哪里使用使它出错呢?
# 6
是呀,我也是想了好久。。关注中。。。
# 7
我是用VBC编译地
lxfan-Fan at 2007-11-1 > top of Msdn China Tech,.NET技术,ASP.NET...
# 8
' VB Document
Imports System
Imports System.Data
Imports System.Data.OleDB

namespace adminstratro
public class admin
private _id as string
private _password as string
private _nam as string
private _phone as string
...

文件是这样地,编译命令是 vbc /t:library admin.dll

错误提示是

vbc : Command line warning BC2007 : unrecognized option 'b:library'; ignored
vbc : error BC30420: 'Sub Main' was not found in 'admin'.
E:\便便的另一只箱子\网页制作\wwwroot\bin\admin.vb(3) : error BC30466: Namespace
or type 'Data' for the Imports 'System.Data' cannot be found.

Imports System.Data
~~~~~~~~~~~
E:\便便的另一只箱子\网页制作\wwwroot\bin\admin.vb(4) : error BC30466: Namespace
or type 'OleDB' for the Imports 'System.Data.OleDB' cannot be found.

Imports System.Data.OleDB
~~~~~~~~~~~~~~~~~
E:\便便的另一只箱子\网页制作\wwwroot\bin\admin.vb(59) : error BC30002: Type 'ole
dbConnect' is not defined.

dim objConnect as new oledbConnect(application("connectText"))
~~~~~~~~~~~~
E:\便便的另一只箱子\网页制作\wwwroot\bin\admin.vb(60) : error BC30002: Type 'ole
dbDataAdapter' is not defined.

dim objAdapter as new oledbDataAdapter(strSql,objConnect)
~~~~~~~~~~~~~~~~
E:\便便的另一只箱子\网页制作\wwwroot\bin\admin.vb(62) : error BC30002: Type 'Dat
aSet' is not defined.

dim objDataSet as new DataSet
~~~~~~~

E:\便便的另一只箱子\网页制作\wwwroot\bin>
lxfan-Fan at 2007-11-1 > top of Msdn China Tech,.NET技术,ASP.NET...
# 9
在该引用的属性中,设置复制到本地
cyberguy at 2007-11-1 > top of Msdn China Tech,.NET技术,ASP.NET...
# 10
如何操作??
偶是菜鸟
lxfan-Fan at 2007-11-1 > top of Msdn China Tech,.NET技术,ASP.NET...