TheSwamp

Code Red => .NET => Topic started by: shers on May 14, 2015, 05:38:14 AM

Title: XML error
Post by: shers on May 14, 2015, 05:38:14 AM
Hi,

In C#, I read a xml file and all worked fine. After a couple of days, it gives me error as follows.

'A first chance exception of type 'system.invalidoperationexception' occurred in system.xml.dll'

What could be the reason? Please help.

Thanks
Title: Re: XML error
Post by: Andrey Bushman on May 14, 2015, 06:06:38 AM
Where is your xml? Where is your code?
Title: Re: XML error
Post by: Jeff H on May 14, 2015, 02:36:48 PM
You have a invalid operation.
Title: Re: XML error
Post by: Jeff_M on May 14, 2015, 03:40:30 PM
http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx
Title: Re: XML error
Post by: shers on May 15, 2015, 01:43:39 AM
You have a invalid operation.

But it was working earlier.
Title: Re: XML error
Post by: Andrey Bushman on May 15, 2015, 02:03:56 AM
But it was working earlier.
Perhaps you opened a window in the office by other hand, or moved a chair not according feng shui. Or simply you forgot to wash your hands before touching the keyboard.
Title: Re: XML error
Post by: MexicanCustard on May 18, 2015, 07:51:40 AM
Careful guys.  Although this post, with such limited information, makes one want to respond as you have.  You're starting to sound like those other boards where flaming seems to be the norm.

shers,  you'll probably get a much better response if you'll post some code in the future.  Post what you've changed to try and fix it.  It also helps if you'll note a break point where you're getting the error.
Title: Re: XML error
Post by: ChrisCarlson on May 18, 2015, 08:03:46 AM
I agree, definitely need to upload at least a snippet where the error is occurring.
Title: Re: XML error
Post by: Andrey Bushman on May 18, 2015, 08:50:04 AM
Careful guys.  Although this post, with such limited information, makes one want to respond as you have.  You're starting to sound like those other boards where flaming seems to be the norm.
I want to offend nobody. It was a joke only. My previous post has questions about more detailed info, but author ignored it and continues to play a game "sea battle". Therefore I wrote my joke. :)