Not logged in. · Lost password · Register
Forum: agsXMPP RSS
petazetas #1
Member since Jul 2006 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: XML Parser Exception : Collection was modified; enumeration operation may not execute.
Hi , I'm getting this exception.
The exception occurs when trying to parse this message:

<presence xmlns="jabber:client" from="" to="" type="unavailable" />

I'm no sure what additional information could be usefull to debug this bug.

Type : System.InvalidOperationException
Message: Collection was modified; enumeration operation may not execute.
Source: mscorlib
TargetSite: Boolean MoveNext()
   at System.Collections.Hashtable.HashtableEnumerator.MoveNext()
   at agsXMPP.PresenceGrabber.m_connection_OnPresence(Object sender, Presence pres) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\PresenceGrabber.cs:line 98
   at agsXMPP.XmppClientConnection.PresenceHandler.Invoke(Object sender, Presence pres)
   at agsXMPP.XmppClientConnection.StreamParserOnStreamElement(Object sender, Node e) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\XmppClientConnection.cs:line 1116
   at agsXMPP.StreamHandler.Invoke(Object sender, Node e)
   at agsXMPP.StreamParser.EndTag(Byte[] buf, Int32 offset, ContentToken ct, TOK tok) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\StreamParser.cs:line 329
   at agsXMPP.StreamParser.Push(Byte[] buf, Int32 offset, Int32 length) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\StreamParser.cs:line 126
Alex #2
Member since Feb 2003 · 4433 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post

for me it looks like the exception occurs in the Presence Grabber. Are you using the presence grabber correctly?
Can you write a test case which causes this exception or post your code?

Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS