Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / September 2007

Tip: Looking for answers? Try searching our database.

Reason : There was an error generating the XML document.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sandeep Singh - 19 Sep 2007 08:34 GMT
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
Joe Fawcett - 19 Sep 2007 22:16 GMT
See http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=167058&SiteID=1

Signature

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

> Hi All,
>
[quoted text clipped - 42 lines]
>
> Sandy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.