Unable to Catch Specific Exception
<p>I am serializing a XML File.During the serialization ,I am receiving general exception.It is hard trace the problem.</p>

<p>my code is:
<hr/></p>

<p>try
<br/>
{
<br/>
 string m_fileName = @"d:\Xml\Person.xml";
<br/>
XmlSerializer xmlPerSerlzr = new XmlSerializer(typeof(person));
<br/>
txtWrt = new StreamWriter(m_fileName);<br />
<br/>
xmlPerSerlzr.Serialize(txtWrt, person);
<br/>
}
<br/>
catch(Exception serExp)
<br/>
     {
<br/>
        MessageBox.Show("Exception is :" + serExp.Message.ToString());
<br/>
     }</p>

<p><hr/></p>

<p>Error Message :</p>

<p>
There was an error reflecting type "Person"
</p>

<p>My question is how can i force the CLR to emit the exact error ?</p>
