PC Review


Reply
Thread Tools Rate Thread

Typed dataset as remoting methods return type problem

 
 
Gatwick
Guest
Posts: n/a
 
      14th Sep 2004
VS 2003 .Net fw 1.1

I have remoting object (singleton) with such method:

public Common.DataSetOffices GetSalesPointList()
{
// prepare return data
DataSet dsResult = m_DataSetOffices.Copy();
return dsResult;
}

I use it in my app as:
...
Common.DataSetOffices dsTmp = obj.SalesPointList;
...
But when ecxecution runs to this string exception occures(just at the
time of assignment operator):

Object reference not set to an instance of an object. System.Data at
System.Data.LookupNode.Bind(DataTable table, ArrayList list)
at System.Data.DataExpression.Bind(DataTable table)
at System.Data.DataExpression..ctor(String expression, DataTable
table, Type type)
at System.Data.DataColumn.set_Expression(String value)
at System.Data.Merger.MergeSchema(DataTable table)
at System.Data.Merger.MergeTableData(DataTable src)
at System.Data.Merger.MergeDataSet(DataSet source)
at System.Data.DataSet.Merge(DataSet dataSet, Boolean preserveChanges,
MissingSchemaAction missingSchemaAction)
at ColIns.DataSetOffices..ctor(SerializationInfo info,
StreamingContext context) in X:\ColIns\Common\DataSetOffices.cs:line
63

As far as I see the problem is in DataSetOffices constructor. But it
is wizard-generated and i dont want to change it for my own. How can
I avoid such problem?

 
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
Methods Differ By Return Type Only - How? Mythran Microsoft VB .NET 2 22nd Dec 2008 02:05 AM
Simple Type Element of Strongly Typed DataSet MIA gr8brain@gmail.com Microsoft ADO .NET 5 16th Oct 2007 08:17 PM
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 07:26 AM
Return a strong typed Dataset from a WebService to my Client? =?Utf-8?B?U3RldmU=?= Microsoft Dot NET 1 9th Jan 2006 12:01 AM
Typed dataset - using enumerations as data type Hal Microsoft ADO .NET 0 1st Oct 2003 04:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:27 PM.