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.)
>
>
|