System.InvalidOperationException - Collection was modified
I have some custom controls from another project that I've imported into SF4. I added the project DLL from a webapp as a reference and copy the ASCX files into the SF project.
Simple controls work fine. But when I try to do data access, I get the exception below. Data access is done via NHibernate. The same control worked in 3.7 SP. If I set a breakpoint in the control, data access works fine, I can see the data via a quickwatch. But for some reason, the following exception is thrown. If I replace the data access with hard-coded values, the control renders fine.
Any ideas?
[InvalidOperationException: Collection was modified; enumeration operation may not execute.] System.Collections.HashtableEnumerator.MoveNext() +7496809 Telerik.Sitefinity.Web.SitefinityHttpModule.Context_EndRequest(Object sender, EventArgs e) +254 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Hello Eric,
Thank you for using our services.
We have been looking at our code to see if something might make NHibernate data access not work within the new version of Sitefinity. We would like to debug the application with your data access code. So if you could send us the controls we would be able to see if there is something wrong on our side.
Thank you very much for your cooperation in advance.
Greetings,
Radoslav Georgiev
the Telerik team
Can you send me an email or give me an email address to send it to? There are several DLLs I need to send.
Thanks,
Eric
Hello Eric,
Thank you for getting back to me.
You can open a bug report referencing this form thread. Please do not us compiled code only. We need to be able to debug your code.
Regards,
Radoslav Georgiev
the Telerik team
Done. Ticket #309885
Let me know if you find anything or if I can be of assistance.
Eric
Hi Eric,
Thank you for submitting the bug report.
I have responded there. Unfortunately we cannot provide a quick fix build right now. Most probably the issue will be resolved for the beta coming in August.
Best wishes,
Radoslav Georgiev
the Telerik team