Overview
Accessing the HTML Editor Manager settings produces an assembly error when the settings should load without any issues after an upgrade.
Prerequisites
- Versions Evoq 9.2+
- Access to a SuperUser Account.
Diagnosis
While trying to change the HTML editor by going to Persona Bar > Settings > Site Settings > Site Behavior > More and clicking on "Open HTML Editor Manager" users may see an error similar to the following:
StackTrace:
InnerMessage:Could not load file or assembly 'DotNetNuke.Web.Deprecated, Version=9.0.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified.
InnerStackTrace:
at DotNetNuke.Providers.RadEditorProvider.ProviderConfig.BindConfigForm()
at DotNetNuke.Providers.RadEditorProvider.ProviderConfig.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at DotNetNuke.Modules.HtmlEditorManager.Presenters.ProviderConfigurationPresenter.View_Initialize(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at DotNetNuke.Web.Mvp.ModuleViewBase.PageInitComplete(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnInitComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The reason that the above error occurs is that the upgraded environment is still using the RadEditorProvider and the default editor needs to be changed to use DNNConnect.CKE.
The RadEditorProvider does not work in a 9.2+ environment due to the removal of Telerik.
Solution
To fix the assembly error:
- Manually edit the editor provider in
web.config
file in the Root Site Folder for your website to use the default CKE editor: The change is in Bold.
<htmlEditor defaultProvider="DNNConnect.CKE">
<providers>
<clear />
<add name="DNNConnect.CKE" type="DNNConnect.CKEditorProvider.CKHtmlEditorProvider, DNNConnect.CKEditorProvider" providerPath="~/Providers/HtmlEditorProviders/DNNConnect.CKE/" settingsControlPath="~/Providers/HtmlEditorProviders/DNNConnect.CKE/Module/EditorConfigManager.ascx" />
</providers>
</htmlEditor>
Testing
To test that the HTML Editor Manager is functional:
- Log in to a SuperUser account.
- Go to Settings > Site Behavior > More > Click "Open HTML Editor Manager"
- The HTML Editor Management Settings should now be visible.
Comments
0 comments
Article is closed for comments.