Introduction: In previous article i explained How to solve the error The files use a different language,which is not allowed since they need to be compiled together Solution in asp.net and The GridView 'GridView1' fired event PageIndexChanging which wasn't handled Error solution in asp.net and How to Solve Error Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server .
In this article I am going to show how to solve/handle the error/exception “Could not find any resources appropriate for the specified culture or the neutral culture.Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.” that usually occur on placing Ajax controls on the asp.net page.
In this article I am going to show how to solve/handle the error/exception “Could not find any resources appropriate for the specified culture or the neutral culture.Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.” that usually occur on placing Ajax controls on the asp.net page.
Reason: In fact AjaxControlToolkit’s control
load the reference that refers to the base System.Web.UI.Control method which
is present as a part of the ASP.NET AJAX Libraries and those libraries are
referenced only when the ScriptManager is referenced in the page.
Solution: Don’t panic. The solution is very easy. Error is not as
big as it looks. We don’t need to do with missing DLLs/ Assemblies rather simply
register the ScriptManager or TookitScriptManager before placing Ajax control.
Implementation: So add ScriptManager from the
AJAX Extension category of the Visual Studio’s toolbox or ToolScriptManager from
the AjaxControlToolkit in the page before ajax control and this error would be
resolved.
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
or
<asp:ToolkitScriptManager
ID="ToolkitScriptManager1"
runat="server">
</asp:ToolkitScriptManager>
Now over to you:
"If you like my work; you can
appreciate by leaving your comments, hitting Facebook like button, following us
on Google+, Twitter, Linked in and Pinterest, stumbling my posts on stumble
upon and subscribing for receiving free updates directly to your inbox . Stay
tuned for more technical updates. "
4 comments
Click here for commentswhere i add this i head or in body...
Replyi have a webform1.aspx so where i add this? in this there is no head
Hello, put the tag just above the ajax control you added or want to add.
Replyhello,i wanna ask something.
Replyif i have trouble with DLLs/ Assemblies,so i just have to add this on my .aspx (
or
)
right? did you mean like that? thank you and God Bless!
Hello Christian Yonathan..if you face the error as mentioned in this article then you can use any one tag either scriptmanager or toolscriptmanager
ReplyIf you have any question about any post, Feel free to ask.You can simply drop a comment below post or contact via Contact Us form. Your feedback and suggestions will be highly appreciated. Also try to leave comments from your account not from the anonymous account so that i can respond to you easily..