YAFLogo

midwestSS
  • midwestSS
  • 100% (Exalted)
  • YAF MVP Topic Starter
15 years ago
my users report these issues alot.. help?

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at YAF.Classes.UI.ReplaceRules.Process(String& text) in C:\YAF-v1.9.3-FINAL-SRC\YAF.Classes\YAF.Classes.UI\ReplaceRules.cs:line 72
   at YAF.Classes.UI.FormatMsg.FormatMessage(String message, MessageFlags messageFlags, Boolean targetBlankOverride, DateTime messageLastEdited) in C:\yaf\YAF-v1.9.3-FINAL-SRC\YAF.Classes\YAF.Classes.UI\FormatMsg.cs:line 328
   at YAF.Classes.UI.FormatMsg.FormatMessage(String message, MessageFlags messageFlags) in C:\yaf\YAF-v1.9.3-FINAL-SRC\YAF.Classes\YAF.Classes.UI\FormatMsg.cs:line 238
   at controls_ShoutBox.BindData()
   at controls_ShoutBox.DataBind()
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBind()
   at YAF.Pages.forum.BindData()
   at YAF.Pages.forum.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Sponsor
JoeOuts
  • JoeOuts
  • 97.4% (Exalted)
  • YAF Developer
15 years ago
Can you recreate the issue consistently and if so how?
KASL Technologies  - Specializing in Custom Web Application Development
midwestSS
  • midwestSS
  • 100% (Exalted)
  • YAF MVP Topic Starter
15 years ago
not really. each client sees an error at a different time. i thought it was cache related, but i cleared it and set it to clear at like 1 am..still, the clients see this as a pop up and the above gets logged.
midwestSS
  • midwestSS
  • 100% (Exalted)
  • YAF MVP Topic Starter
15 years ago
in fact, i just got another error, not logged on the server, but you can see it in this pic attached
midwestSS
  • midwestSS
  • 100% (Exalted)
  • YAF MVP Topic Starter
15 years ago
im wondering if i recompiled improperly.. the only thing ive compiled for was the shoutbox. since you compiled the only DLL needed. i replaced all my dll's with the ones from the release, except for the yaf.classes.data.dll one you compiled. ill see if the error shows again.

i also searched for one of the errors in the event log statement on the server.. found this

http://support.microsoft.com/kb/555353 

it suggests this for the solution..?? is making a machine key the answer? i know galleryserverpro.com's products uses that.

1. Adjust the settings on the application pools so that recycling is less likely to occur at peak periods.
2. Use a specific key in the machine.config to prevent automatic key generation on each process start
3. Only post to the same ASPX page
4. Turn off firewall and antivirus software