PC Review


Reply
Thread Tools Rate Thread

No map for object '1311703010'. when remoting

 
 
=?Utf-8?B?cmlja3lqb25lc3Vz?=
Guest
Posts: n/a
 
      5th Apr 2006
I have a client server app that I am creating, it uses TCP and binary
formatting. I am attempting to return a list<> of objects that are of type
SampleObject across the app domain boundry. SampleObject is a custom class
that I have created, it contiains both value and refrence types. sometimes
it works and sometimes I receive the "No map for object '1311703010'. error
message.

Thanks for any help.
Ricky Jones
 
Reply With Quote
 
 
 
 
Luke Zhang [MSFT]
Guest
Posts: n/a
 
      6th Apr 2006
Hi Ricky,

Normally, this exception may occur an object was serialized or deserialize.
Can you locate the line which generate the exception? And log the object
which cause the exception. I suspect the problem is relative to the data
the application handled so that it looks "randomly".

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
=?Utf-8?B?cmlja3lqb25lc3Vz?=
Guest
Posts: n/a
 
      6th Apr 2006
This is the segment of code around the error.

_samplesObjectGrid.DataSource = null;

//
//If all users is checked then return for all users
//otherwise return for current user.
//
try
{
HA.IntelliSystem.ClientConnecter cConn = new
HA.IntelliSystem.ClientConnecter();
string connectedUserName = cConn.ConnectedUserName;

//DataTable sampleTable;
List<SampleObject> sampleTable;
if (_currentUserToolStripMenuItem.Checked)
sampleTable =
_SampleManagment.BrowseSamples("Owner",connectedUserName,
_sampleFilterCombo.SelectedItem.ToString(),_samplesTree.SelectedNode.Text);
else
sampleTable =
_SampleManagment.BrowseSamples(_sampleFilterCombo.SelectedItem.ToString(),
_samplesTree.SelectedNode.Text);

_samplesObjectGrid.DataSource = sampleTable;
_samlesView.DataSource = sampleTable;


}
catch (System.Runtime.Serialization.SerializationException se)
{
System.Diagnostics.Trace.WriteLineIf(true, se.Message);
throw;
}

The following line is the one that actually caused the exception.
sampleTable = _SampleManagment.BrowseSamples("Owner",connectedUserName,
_sampleFilterCombo.SelectedItem.ToString(),_samplesTree.SelectedNode.Text);

_SampleManagment is a remote object that is on the server using a TCP
channel and binary formatter.

Thank you so much for your help.

Ricky

"Luke Zhang [MSFT]" wrote:

> Hi Ricky,
>
> Normally, this exception may occur an object was serialized or deserialize.
> Can you locate the line which generate the exception? And log the object
> which cause the exception. I suspect the problem is relative to the data
> the application handled so that it looks "randomly".
>
> Luke Zhang
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>

 
Reply With Quote
 
=?Utf-8?B?cmlja3lqb25lc3Vz?=
Guest
Posts: n/a
 
      6th Apr 2006
If there is anyother code that you need please let me know. I do remoting
setup through code, and i can also send you the SampleObject which is a
fairly large object with child objects.

"Luke Zhang [MSFT]" wrote:

> Hi Ricky,
>
> Normally, this exception may occur an object was serialized or deserialize.
> Can you locate the line which generate the exception? And log the object
> which cause the exception. I suspect the problem is relative to the data
> the application handled so that it looks "randomly".
>
> Luke Zhang
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>

 
Reply With Quote
 
Luke Zhang [MSFT]
Guest
Posts: n/a
 
      7th Apr 2006
Thank you for the information. Regarding the problem, I suggets you add
some debug code before following line:

sampleTable = _SampleManagment.BrowseSamples("Owner",connectedUserName,
_sampleFilterCombo.SelectedItem.ToString(),_samplesTree.SelectedNode.Text);

For example, add above line in a try-catch block and log the parameters
like: connectedUserName,
_sampleFilterCombo.SelectedItem.ToString(),_samplesTree.SelectedNode.Text
to a database when catching an exception. In this way, you may get a
sample which can make the problem reproducable.

Then we can make further research to see what is the problem.

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
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
No map for object '1311703010'. when remoting =?Utf-8?B?cmlja3lqb25lc3Vz?= Microsoft Dot NET Framework 0 29th Mar 2006 07:25 PM
RE: Remoting: Passing information to the Remoting Object upon Creation Felix Wang Microsoft C# .NET 3 9th Feb 2004 10:09 AM
Re: Remoting: Passing information to the Remoting Object upon Creation Matthew Wieder Microsoft C# .NET 0 6th Feb 2004 03:01 PM
Re: Remoting: Passing information to the Remoting Object upon Creation Matthew Wieder Microsoft C# .NET 0 5th Feb 2004 02:04 PM
Remoting: Passing information to the Remoting Object upon Creation Matthew Wieder Microsoft C# .NET 0 4th Feb 2004 11:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:52 PM.