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
PvdG42 - 19 Sep 2007 12:33 GMT
> Hi All,
>
[quoted text clipped - 43 lines]
>
> Sandy
Try this:
In your solution folder, delete the debugger database (.ncb, I think) file
and the debug folder. In the project folder, delete the debug folder. Reload
the solution into VS then build.
That may clear the issue.