|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
No map for object '1311703010'. when remotingI 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 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.) 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 Show quote "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.) > > 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.) 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. Show quote "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.) > > |
|||||||||||||||||||||||