Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a masterpage and a content page
in content page i have a code like this which everything works fine in the local but when i uploaded to the server it shows an error like this

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Source Error:
Line 129:

Line 130:

Line 131: <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
Line 132:
Line 133:



my master page code doesnt have a script manager or toolscriptmanager

but my content page has an editor which has requires toolscript manager,, Here is my code
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">

<cc1:Editor ID="Editor_Body" runat="server" CssClass="textarea1" />


</asp:Content>
Posted
Updated 25-Feb-15 1:28am
v2

1 solution

Move asp:ToolkitScriptManager so that it is above all controls that use it. That is, put it above ContentPlaceHolders.

That should do the trick.
 
Share this answer
 
Comments
nuthi_naresh 25-Feb-15 7:26am    
can u be little clear??
i also tried keeping the asp:toolscriptmanager above the content place holder but it doesnt resolved
Sinisa Hajnal 25-Feb-15 9:09am    
I don't know how I can be more clear...you're showing master page which has script manager UNDER content pages. What happens when the content page uses a control that needs ajax toolkit? It tries to use it and doesn't find it.

If moving toolscript manager above content didn't resolve it, try adding it directly to the page (just to check that it will work). If it does, then you continue (I think there was some mention of proxy manager or something like that that dealt specifically with script manager for content pages). Good luck

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900