> Can someone explain this new-to-visualbasic programmer why my statement throws
> an exception?
[quoted text clipped - 10 lines]
> But at runtime, this statement throws an exception with the message:
> Unable to cast object of type 'System.Data.DataSet' to type 'myDataSet'
First, you should ask your .Net questions in a dotnet group, not a VB6 group.
Second, since myDataSet inherits from DataSet, that means that:
All instance of myDataSet are also an instance of DataSet, but
Not all instances of DataSet are also an instance of myDataSet.
You can't "get rid of this nasty exception"; you actually can't cast a generic
DataSet to myDataSet, since it isn't one!
Perhaps you meant for your web service function dswebsvc() to return an instance
of myDataSet?