PC Review


Reply
Thread Tools Rate Thread

dataset in a Web Service

 
 
ThunderMusic
Guest
Posts: n/a
 
      23rd Nov 2005
Hi,
I have a web service. It works fine until it hits a
dataadapter.fill(dataset) Is it normal? it results in a "The page cannot be
displayed (HTTP 500)" page.

Dim dbMan As DBManager
Dim dbConn As IDbConnection
Dim dbDA As IDataAdapter
Dim dbCB As System.ComponentModel.Component
Dim dbds As DataSet
Dim dbRow As DataRow

dbType = MYSQL
dbParams = New DBParamMySQL
DirectCast(dbParams, DBParamMySQL).ServerName = <NotShown>
DirectCast(dbParams, DBParamMySQL).DBName = <NotShown>
DirectCast(dbParams, DBParamMySQL).Username = <NotShown>
DirectCast(dbParams, DBParamMySQL).Password = <NotShown>

'Get the DB Manager object setting the good db type and params
dbMan = New DBManager(dbType, dbParams)

dbConn = dbMan.GetNewConnection
dbDA = dbMan.GetNewDataAdapter("Select * From table1 where 0=1", dbConn)
dbCB = dbMan.GetNewCommandBuilder(dbDA)
dbDA.Fill(dbds) <--That's where is bugs

I have commented everything and tested and uncommented 1 line at a time and
everything works until I uncomment the Fill line...

Please help me, I'm lost.

Thanks


 
Reply With Quote
 
 
 
 
ThunderMusic
Guest
Posts: n/a
 
      23rd Nov 2005
problem solved, I had to define a New dataset (dim dbds as NEW dataset)
grrrrr, stupid error!!

Thanks anyways...

"ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> a écrit dans le message de
news: %23x%231wW%(E-Mail Removed)...
> Hi,
> I have a web service. It works fine until it hits a
> dataadapter.fill(dataset) Is it normal? it results in a "The page cannot
> be displayed (HTTP 500)" page.
>
> Dim dbMan As DBManager
> Dim dbConn As IDbConnection
> Dim dbDA As IDataAdapter
> Dim dbCB As System.ComponentModel.Component
> Dim dbds As DataSet
> Dim dbRow As DataRow
>
> dbType = MYSQL
> dbParams = New DBParamMySQL
> DirectCast(dbParams, DBParamMySQL).ServerName = <NotShown>
> DirectCast(dbParams, DBParamMySQL).DBName = <NotShown>
> DirectCast(dbParams, DBParamMySQL).Username = <NotShown>
> DirectCast(dbParams, DBParamMySQL).Password = <NotShown>
>
> 'Get the DB Manager object setting the good db type and params
> dbMan = New DBManager(dbType, dbParams)
>
> dbConn = dbMan.GetNewConnection
> dbDA = dbMan.GetNewDataAdapter("Select * From table1 where 0=1", dbConn)
> dbCB = dbMan.GetNewCommandBuilder(dbDA)
> dbDA.Fill(dbds) <--That's where is bugs
>
> I have commented everything and tested and uncommented 1 line at a time
> and everything works until I uncomment the Fill line...
>
> Please help me, I'm lost.
>
> Thanks
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dataset in a Web Service ThunderMusic Microsoft ASP .NET 1 23rd Nov 2005 04:35 AM
dataset in a Web Service ThunderMusic Microsoft Dot NET 1 23rd Nov 2005 04:35 AM
web service dataset Mike Microsoft ASP .NET 1 2nd Sep 2004 06:54 AM
Getting web service dataset into xml John Microsoft VB .NET 11 26th Jun 2004 05:01 PM
Compress dataset sent over a web service Dan Microsoft VB .NET 4 1st Mar 2004 12:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.