Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2006

Tip: Looking for answers? Try searching our database.

No map for object '1311703010'. when remoting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rickyjonesus - 05 Apr 2006 13:48 GMT
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
Luke Zhang [MSFT] - 06 Apr 2006 04:06 GMT
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.)
rickyjonesus - 06 Apr 2006 16:33 GMT
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

> Hi Ricky,
>
[quoted text clipped - 13 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Luke Zhang [MSFT] - 07 Apr 2006 07:04 GMT
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.)
rickyjonesus - 06 Apr 2006 20:55 GMT
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.

> Hi Ricky,
>
[quoted text clipped - 13 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.