未找到Telerik RadEditor组件'RadFileExplorer1_ajaxLoadingPanel'

时间:2015-12-08 15:56:53

标签: c# asp.net telerik

我有两个网站。两者几乎完全相同,除了它们所连接的数据库。两者都使用telerik RadEditor,但是现在已经停止了文件管理器上的上传按钮,并且给出了以下错误: 未捕获的Sys.InvalidOperationException:Sys.InvalidOperationException:找不到组件'RadFileExplorer1_ajaxLoadingPanel'。

我花了很长时间试图弄清楚为什么会这样,但似乎无法找到任何信息。还有其他人有什么建议吗?

由于

编辑:

示例代码 -

<telerik:RadEditor id="radEditor" runat="server" Height="800px" Width="100%" ContentFilters="None"
                            OnClientLoad="OnClientLoad">
            <Content>

                

protected void Page_Load(object sender, EventArgs e)
{
AppSettingManager.GetInstance.RADEditorSettings.ConfigureEditor(RADEditorSettings.EditorType.Content, radEditor, "pathHere", css);
}


public void ConfigureEditor(EditorType type, Telerik.Web.UI.RadEditor editor, string contentFolder, List<string> cssPaths)
    {
        this.ConfigureEditor(type, editor, cssPaths , 0 , 0);

        string[] contentEditPath = new string[2];

        contentEditPath[0] = this.ContentPath + contentFolder;
        contentEditPath[1] = this.LibraryPath;

        editor.ImageManager.MaxUploadFileSize = this.MaxImageSize;
        editor.ImageManager.SearchPatterns = this.ImageExtensions;
        editor.ImageManager.UploadPaths = contentEditPath;
        editor.ImageManager.DeletePaths = contentEditPath;
        editor.ImageManager.ViewPaths = contentEditPath;

        editor.DocumentManager.MaxUploadFileSize = this.MaxDocumentSize;
        editor.DocumentManager.SearchPatterns = this.DocumentExtensions;
        editor.DocumentManager.UploadPaths = contentEditPath;
        editor.DocumentManager.DeletePaths = contentEditPath;
        editor.DocumentManager.ViewPaths = contentEditPath;

        string[] templatePath = new string[] { this.TemplatesPath };

        editor.TemplateManager.SearchPatterns = this.TemplateExtensions;

        editor.TemplateManager.ViewPaths = templatePath;

        Telerik.Web.UI.EditorModule WebContentWordCountModule = new Telerik.Web.UI.EditorModule();
        WebContentWordCountModule.Name = "Module";
        editor.Modules.Add(WebContentWordCountModule);

        var script = new HtmlGenericControl();
        script.TagName = "script";
        script.Attributes.Add("type", "text/javascript");
        script.Attributes.Add("src", script.ResolveUrl("~/Module.js"));
        editor.Controls.Add(script);

        if (ConvertToXhtml)
            editor.ContentFilters = Telerik.Web.UI.EditorFilters.ConvertToXhtml;

        editor.ContentAreaMode = Telerik.Web.UI.EditorContentAreaMode.Iframe;
    }

0 个答案:

没有答案