Reason : There was an error generating the XML document.
- From: "Sandeep Singh" <sandeepmaharana@xxxxxxxxx>
- Date: Wed, 19 Sep 2007 13:04:39 +0530
Hi All,
I am getting an error while generating XML .
The error message is : There was an error generating the XML document.
Unable to cast object of type '.ThirdPartyFlatFileDetailCollection' to type
'ThirdPartyFlatFileDetailCollection'.
Please Note that it was working fine for last many months but today it
becomes giving error.
So please response me on the same group.
Codes are :
string str = filePath;
StreamWriter newXMLDoc = new StreamWriter(str);
XmlSerializer isinXML = new
XmlSerializer(typeof(ThirdPartyFlatFileDetailCollection));
try
{
isinXML.Serialize(newXMLDoc, coll);
}
catch (Exception ex)
{
bool rethrow = ExceptionPolicy.HandleException(ex,
Common.POLICY_LOGANDTHROW);
if (rethrow)
{
throw;
}
Thanks
Sandy
.
- Follow-Ups:
- Re: Reason : There was an error generating the XML document.
- From: Joe Fawcett
- Re: Reason : There was an error generating the XML document.
- Prev by Date: Re: XmlTextWriter and knowing wich element is opened at run time
- Next by Date: Streaming XML
- Previous by thread: How To View well formatted XML in IE 6.0
- Next by thread: Re: Reason : There was an error generating the XML document.
- Index(es):