473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

dataset in a Web Service

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
Nov 23 '05 #1
1 941
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: %2*******************@TK2MSFTNGP10.phx.gbl...
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

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: geilen | last post by:
I'm trying to use a dataset returned from a web service in an unmanaged C++ (MFC) client. The dataset is returned as a BSTR, and I'm having trouble reading the BSTR into an XML document for...
2
by: Bob | last post by:
Hi, Can anyone tell me how to resolve this: I am calling a web service from a WinForm app and passing a typed dataset as a parameter. I have added the dataset to the web service project but I...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
5
by: moondaddy | last post by:
I'm writing an winforms app in vb.net 1.1 and am having trouble referencing a strongly typed dataset in the UI project. The dataset's source is behind a web service and the data project (client...
1
by: J. Askey | last post by:
I am implementing a web service and thought it may be a good idea to return a more complex class (which I have called 'ServiceResponse') in order to wrap the original return value along with two...
6
by: James | last post by:
I am writing a web service for a classic ASP application. I need to consume an ADO recordset and then send it to another web service for processing. I found an MSDN ariticle telling how to do this...
2
by: DB | last post by:
Hi I have a specific problem of Access to Internal IIS and therefore need to have two Web Services to return the Dataset from one of them. The Internal Web Service Returns a Dataset of Addresses...
7
by: David P. Donahue | last post by:
My experience with databases using C# has been pretty limited thus far. Mostly I just use a SELECT statement to populate a DataSet, which is just read-only (mostly for display on a web page), or...
5
by: vaj | last post by:
Hey, Im creating a system on a pocket pc based on win ce 4.2 and i need to tranfer three datasets to a remote server on the network.Could anyone tell me the easiest way to do this? cheers, -vaj
15
by: Joseph Geretz | last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or Datatables between application tiers. http://support.microsoft.com/kb/306134 ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.