Problems One May Encounter When trying to use the Ajax Control Toolkit for the first time.

Posted by OmegaMan at January 27, 2010

Category: Ajax, ASP.Net

Tags:

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure “AjaxControlToolkit.Properties.Resources.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed.

System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure “AjaxControlToolkit.Properties.Resources.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed.

AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.

The latest incarnation (3.6.097 as of this writing) of the asp.net Ajax Control Toolkit needs to be setup using its script manager and not the standard asp.net Script Manager.

So one way to avoid the above issues is to drag the ToolkitScriptManager (found in the control toolkit) onto the Form tag and then use any other Ajax Controls. Here is an example of it using the TabContainer:

<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"/>
<div>
    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1">
        <asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
            <ContentTemplate><p>Hello</p></ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
        <ContentTemplate><p>Hello2</p></ContentTemplate>
     </asp:TabPanel>
    </asp:TabContainer>
</div>
</form>
Share

48 Comments

  1. tom says

    Thanks , this solved my issue perfectly.

    System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “AjaxControlToolkit.Properties.Resources.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed.

    Reply
  2. Zelmer Zootinheimer says

    Thank you! I have been beating my head against these problems for the better part of tonight! Your tip finally pointed me in the right direction.

    Reply
  3. Shravan says

    Superb solution. Thanks !!

    Reply
  4. Rahul says

    hi… thanks for the solution! it really made my day.

    But how does this solve the problem and why such issues are not mentioned in the places like readme files etc.??

    Reply
    • omegaman says

      The developers updated the toolkit and most likely were oblivious to all possible errors. You are developer, have you ever had a tester come up to you after a bug fix and ask, “Why didn’t you put in a catch for that…it seemed so obvious.”…. 🙂

      Reply
  5. AJ says

    Great workaround/solution! Thank you very much!

    Reply
  6. Emre says

    Thanks thanks thanks …

    Reply
  7. Danny says

    Thanks, fixed my issue

    Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “AjaxControlToolkit.Properties.Resources.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed.

    Reply
  8. Psychic says

    Hi,
    I had the same problem but after I added ToolkitScriptManager tag, my site show a new error:
    Script controls may not be registered before PreRender.
    What’s wrong with it?
    Thanks for help.

    Reply
  9. daydidz says

    thank you sooooooooo much… You really saved my day! Mwah3x 🙂

    Reply
  10. Nick says

    yeah but what if you’re working off a page that uses a Master Page and there is no form tag?

    Reply
    • OmegaMan says

      The the same rules apply as before about hooking up the toolkit; there is no change…but to use Asp.net one always needs a form tag to use the controls. Am I missing something?

      Reply
  11. Eric Guo says

    I also want to express my thanks, I met the same problem and just google it [and it led me to] here.

    Reply
  12. defelix says

    Hi everyone,
    I have a similar problem, but inside a user control.
    Pratically I have a user control (ascx) with a tabcontainer, when I put the user control in a web page I have the error:
    “Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “AjaxControlToolkit.Properties.Resources.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed.”
    I followed your suggestions but it doesn’t work, besides I noticed that I have this problem just with tabcontainer control, and not with others toolkit controls.
    Any idea.
    thanks a lot in advance

    Reply
  13. Bob says

    I’m having the same problem as defelix. I only have the problem inside of Web User Contorls and only with the TabContainer.

    None of the solutions here have helped me.

    Any help is appreciated.

    Thanks,
    Bob

    Reply
  14. Arunabh Das says

    I am facing the same problem but wrapping in form tag is not fixing the problem.

    Preferences

    Page One

    Page Two

    Page Three

    You are not logged in.

    Please login to access eservice

    Please help.

    Reply
  15. Douglas says

    Muito obrigado mano .. sua ajuda salvou meu dia .. tava a algumas horas tentando entender .. foi simples e objetivo .. VALEU ..

    Reply
  16. Yuppski says

    Nice 1.

    Reply
  17. James says

    This worked great, thanks for sharing.

    Reply
  18. Thanks says

    Thanks very much, this made it work 🙂

    Reply
  19. Gerry says

    I am incredibly grateful to you. There are a huge number of sites offering obtuse (to me) solutions to this issue. Yours immediately made sense and worked 🙂

    Reply
  20. Gerry says

    This page helped me a lot. Thanks.

    Here is what I had to do to get Ajax Tabs to work with pages that linked to a Master page.
    I am self taught in building web pages and started about 4 weeks ago. I couldn’t have done it without the help available on the internet.

    .ajax is followed by two underline characters.
    
    .ajax__tab_header {
        font-family:verdana,tahoma,helvetica;
        font-size:11px;
        border-bottom:solid 1px #999999
    }
    .ajax__tab_tab
    {
        font-family:Verdana,tahoma,helvetica;
        font-size:11px;
        border-bottom:solid 1px #999999
        }
    .ajax__tab_body
    {        
        font-family: verdana,tahoma,helvetica;        
        font-size: 16pt;        
        border: 1px solid #999999;        
        border-top: 0;        
        padding: 8px;        
        background-color: #ffffff;
    }
    
    

    You will need code like this in Styles.CSS to control the styles of your tabs across you whole project. Note that
    In your Master Page, you will need the “link” statement within the tag to pick up the CSS styling.

    <head id="Head1" runat="server">
        <title></title>
        <link rel="stylesheet" type="text/css" href="Styles.css" />
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    
    

    I added the “Register Assembly” line shown below as the second line in each of my ‘child’ pages.

    <%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
    
    

    —-End—-

    Reply
    • OmegaMan says

      Thanks Gary!

      Reply
  21. Nitin says

    hi, I m new in web application. i work as per ur suggestion but now i get the error “Could not load type ‘System.Web.UI.ScriptReferenceBase’ from assembly ‘System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′”
    and wat abt with masterpage applied page where there is no form tag. pls help me

    Reply
  22. Casey says

    This solution is not working for me inside a master page. In the master I have this…

    ….

    ….

    Then, in the .aspx page…

    ….

    And I get this javaScript error:

    Message: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

    Any ideas? I’m getting desperate!!!

    Reply
  23. Gerry says

    Sorry, the rest of my ‘comment’ of Sept 6 seems to have been moderated out of existence. Maybe it was just too long.

    Here is the rest of it.

    Make sure that you have the line as below in your Master page.

    This is the ‘Register Assembly’ line that you need in each child page, just after the ‘@ Page’ line.

    Good luck.

    Reply
  24. Mario Brazil says

    Hey Dude…. you really save my day..
    Thank you so much .

    Reply
  25. Shawn says

    Thanks a lot man, that solved my problem!!

    Reply
  26. Jacqueline says

    Thanks a lot. I was breaking my head with this the whole day.
    🙂

    Reply
  27. Paul says

    Yet another “Thanks a bunch!” comment….

    Reply
  28. Amit Gurung says

    Thanks a lot you have saved me…..from banging my head

    Reply
  29. Amresh Victor says

    Thank you very much……you saved my day (or should I say night……)

    Reply
  30. Maarten says

    Thanks this helped a lot!!

    Maarten

    Reply
  31. Melvin says

    dang. that was it?

    thanks a lot. you’re a lifesaver!!

    Reply
  32. raghunagh says

    Hi, I have same problem as defelix,
    I created a user control with ajax tab control. I am using the user control in content page. In the content page it is giving the error as

    “could not find any resources appropriate for the specified culture or the neutral culture. make sure “ajaxcontroltoolkit.properties.resources.resources” was correctly embedded or linked into assembly “ajaxcontroltoolkit” at complie time, or theat all satellite assemblies required are loadable and fully signed”.

    Please suggest the steps to follow to get rid of this error.

    Thanks in advance

    Reply
  33. Kevin says

    Thanks a lot. It totally saved my day…

    Reply
  34. Ajay says

    Thanks much.It saved lots of time for me.

    Reply
  35. Brent says

    This worked, but now my content is not showing up. What could be the problem?

    Reply
  36. Bharadwaj says

    Hi,

    In our project we are using AJAX FileUploader in Update Panel. I am getting the same error not in compilation but I am getting it when I am debugging the project. It says it could not locate the ScriptControlBase.cs file and asking to browse and locate the file. Will it fix my problem?

    Reply
  37. ADITYA says

    Hi.When i am using the ‘Toolkit script manager ‘ also,i am getting same error like below
    Could You Please Help me in this

    (Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “AjaxControlToolkit.Properties.Resources.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed.)

    Reply
  38. Thatsanun says

    One might also look into using the toolscript manager which is in the toolkit as well. (Edited by Moderator)

    Reply
    • OmegaMan says

      Could you elaborate as to how that helps? Thanks.

      Reply
  39. Micke says

    yes, thanx a lot ! yes ToolkitScriptManager helped

    Reply
  40. Dynamite says

    Thanks a lot for this. I’ve spend over 3 hours looking for solution that works & yours just saved my day. Thanks a lot. 🙂

    Reply
  41. Kenny says

    Thanks a lot…Way too long…looking for the solution

    Reply
  42. GratefulUser says

    After breaking my head over, every possible method that can be out there, this once works fine for me. Thank you so much!

    Reply
  43. Anna Gonzales says

    Thank God!
    Just simple as that! 🙂

    Reply

Leave a comment

(required)
(required) (will not be published)

This site uses Akismet to reduce spam. Learn how your comment data is processed.