Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jump Start: Creating a Web Service - VB .NET
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01130446
Message ID:
01132267
Views:
10
>I am doing the above and at Step4, I faced a problem. When I add the web method, the below lines got problem :
>
>' Get all orders for the specified customer
> Return oOrder.GetOrdersByCustomerID(custID)
>
>The error message as below:
>Error 74 Value of type 'System.Data.DataTable' cannot be converted to 'System.Data.DataSet'. D:\MM.Net Jump Start\Orders Web Service VB\App_Code\CustomerOrdersWS_VB.vb 26 16 D:\MM.Net Jump Start\Orders Web Service VB\

It looks like this is a typo in the Jump Start. Try changing the signature of the Web Service method to this:
Public Function GetOrdersByCustomerID(ByVal custID As String) As DataSet
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform