问一个大概是framework配置的问题

acan 2002-03-20 06:38:05

一台web server 用的是windows2000 advanced server+sp2,framework v1.0.3705.0; ASP.NET Version:1.0.3705.0

用dataset读一个数据库的时候,出现如下的现象.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'ADODataSetCommand' is not defined.

Source Error:



Line 5: Function CreateDataView(DBPath As String,TableName As String,SQL As String) As DataView
Line 6: Dim ConnStr As String
Line 7: Dim Cmd As ADODataSetCommand
Line 8: Dim ds As DataSet
Line 9:


Source File: G:\Tutorial\DataBaseConn.inc Line: 7

请问是怎么回事? 可能是由于什么发生的?
...全文
31 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
dreamdragon2008 2002-03-22
  • 打赏
  • 举报
回复
把你这段代码贴出来
acan 2002-03-22
  • 打赏
  • 举报
回复
en,现在好了,是数据库格式错了.

:)
dreamdragon2008 2002-03-21
  • 打赏
  • 举报
回复
可能是ADODataSetCommand没有初始化,你可能是在IF语句内或循环内对它赋值的,这样定义试试看:Dim Cmd As ADODataSetCommand=nothing,
acan 2002-03-21
  • 打赏
  • 举报
回复
不是未赋值,是 type undefined.

搞不懂是什么地方出了问题. thx

//bow
acan 2002-03-21
  • 打赏
  • 举报
回复
我去试试看,可以的话一定给你60分

17,740

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET Framework
社区管理员
  • .NET Framework社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧