Could not load control AjaxControlToolkit.HTMLEditor.Editor
Ich bin versucht, das AjaxToolKit-Editor, aber wenn ich die Seite anzeigen bekomme ich eine Fehlermeldung besagt, dass die Steuerung wurde nicht richtig geladen.
Da ich nicht sicher bin, was fehlt, ich bin mir nicht sicher, wie viel Informationen in diesem post. Wenn es etwas anderes kann ich Ihnen bieten könnte, zeigen Sie das problem, Sie raten, und ich werde es hinzufügen.
Meine Fehlermeldung:
Could not load control AjaxControlToolkit.HTMLEditor.Editor. The
script reference(s) of this control was not loaded correctly. If
AjaxControlToolkit.config is used, probably this control is not
registered properly. Description: An unhandled exception occurred
during the execution of the current web request. Please review the
stack trace for more information about the error and where it
originated in the code. Exception Details: System.Exception: Could
not load control AjaxControlToolkit.HTMLEditor.Editor. The script
reference(s) of this control was not loaded correctly. If
AjaxControlToolkit.config is used, probably this control is not
registered properly. Source Error: An unhandled exception was
generated during the execution of the current web request. Information
regarding the origin and location of the exception can be identified
using the exception stack trace below. Stack Trace: [Exception:
Could not load control AjaxControlToolkit.HTMLEditor.Editor. The
script reference(s) of this control was not loaded correctly. If
AjaxControlToolkit.config is used, probably this control is not
registered properly.]
AjaxControlToolkit.ToolkitScriptManager.OnPreRender(EventArgs e) +387
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+974
Mein HTML:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="UACWeb.WebForm1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolKitTag" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>TEST</title>
</head>
<body>
<form id="form1" runat="server">
<AjaxToolKitTag:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="false"></AjaxToolKitTag:ToolkitScriptManager>
<cc1:Editor ID="Editor1" runat="server" />
</form>
</body>
</html>
Den Steuerelementen im Bereich " meine Web.config:
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
Ich nicht ein AjaxControlToolkit.config-Datei.
Können Sie loszuwerden, die zweite Registrierung der AjaxControlToolkit, und ändern Sie den KKI zu ajaxtoolkittag?
InformationsquelleAutor user2557397 | 2013-08-03
Du musst angemeldet sein, um einen Kommentar abzugeben.
Nach viel Forschung, habe ich entdeckt, dass einige Benutzer Probleme mit der April -, Juni -, & Juli 2013-Version des Ajax-Toolkit mit einem Verweis auf die stand-alone-HTML-editor-Steuerelement. Ich habe versucht, "durch Reifen springen" durch Bearbeiten der my -
web.config
und das hinzufügen einerajaxtoolkit.config
- Datei in das Stammverzeichnis, die viele erwähnt haben, behebt dieses Problem, aber keine dieser Lösungen schien beheben das problem für mich. Ich habe jedoch eine Möglichkeit gefunden, um das Problem zu beheben für Sie die web-Projekte arbeite ich an mir selbst.Habe ich heruntergeladen und installiert werden, die Januar 2013 version des Ajax Control Toolkit. Es scheint, dass diese version des Toolkits enthält nicht die HTML-editor-Referenz-Problem wie die aktuellen Versionen.
Hier ist, was ich getan habe:
Ich gelöscht, das Ajax-Toolkit-DLLs aus dem
bin\
Verzeichnis entfernt, die im Juli 2013 von Ajax Toolkit Referenzen aus der Lösung entfernt und das Ajax Toolkit controls aus der toolbox.Habe ich dann kopiert die. Januar 2013 version des Ajax-Toolkit-DLLs, die
bin\
- Verzeichnis Hinzugefügt, die ab Januar 2013 version zurück zu der toolbox, und lief das Projekt, das läuft jetzt ohne die Vorherige Referenz Fehler, die ich immer war.Glaube ich kleben mit den Januar-2013-version des Ajax Control Toolkit die Lösung für alle unsere Projekte, bis jemand herausfindet, was genau ist die Ursache und wie man es beheben, in der mehr aktuelle Ajax-Toolkit-Versionen.
InformationsquelleAutor user2662876