I installed the RadEditor some time ago and have sporadically recieved the error. "The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases." Ever since. We finally got it to reproduce with the repository module in DNN. If after installing RadEditor as your default editor you go into Settings on the repository and then click update the error appears.
While Debugging we tracked it to line 509 of the Telerik RadEditor provider it's inside the RadEditor_Load Event Handler.
The Code reads
--------------------------------------------------------------------------
_editor.Parent.Controls.Add(New LiteralControl(String.Format("<link title='Telerik stylesheet' type='text/css' rel='stylesheet' href='{0}'></link>", editorPage.Server.HtmlEncode(cssOverrideUrl))))
Else IF
-------------------------------------------------------
Looks like in some instances the Provider is attempting to add the Control to the collection at an invalid time runing the postback. To fix it for now we changed our provider to read
Try
_editor.Parent.Controls.Add(New LiteralControl(String.Format("<link title='Telerik stylesheet' type='text/css' rel='stylesheet' href='{0}'></link>", editorPage.Server.HtmlEncode(cssOverrideUrl))))
Catch ex As HttpException
'The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
End Try
Any official Word on this?
Anyone else noticing this?