Contact Sales: +1-888-365-2779
Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > Error creating template groups - for all controls
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Error creating template groups - for all controls

Feed from this thread
  • Dan Scutaru avatar

    Posted on Jul 6, 2009 (permalink)

    Error creating template groups. Reason: System.InvalidCastException: [A]Telerik.Web.UI.RadGrid cannot be cast to [B]Telerik.Web.UI.RadGrid.
    There is a long description for which I have a snapshot that I can send in an email if needed. On Friday I closed a working project and today when i opened the project and one page had all the telerik components in red with a lot of pop up messages. The only way to fix it after couple of tries (like shut down VS 2008, rebooting the machine) was to remove all the telerik controls and the  
    Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" 

     

     

    at the top of the page and losing work previously done.
    After i added the first component, a radGrid, then the master page got errors such as Error Creating Control - RadScriptManager1 Unknown server tag telerik:RadScriptManager and another one for the telerik menu control.
    By deleting and adding the Register... (added by the grid that was droppped on the page) from above the error dissapeared.
    I had previous issues with same knid of errors that disappeared after closing VS 2008 and restarting but not this time.
    You cannot access the properties in design mode but you can build with NO ERRORS and run the program with normal functionality (weird eh?)
    The thing is (becase it happened before but fixed itself) to have a huge project done (I have just started and will be big anyway) and one day all (or some) the telerik controls to show in red and have no access to their properties: kind of a scary thought!

    Please advise,

    Another Dan.

  • Pavlina Pavlina admin's avatar

    Posted on Jul 8, 2009 (permalink)

    Hello Dan,

    Could you please confirm that you have a reference to the Telerik.Web.Design assembly in your project?
    For more details about how to address design-time errors with the Q1 2009 release of RadControls for ASP.NET AJAX, please review the following blog post which elaborates on this subject:
    Meet Telerik.Web.Design.dll

    Kind regards,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  • Dan Scutaru avatar

    Posted on Jul 8, 2009 (permalink)

    Hello Pavlina,

    thank you for your response but i do not think it applies to my case. Because you do not allow attachments in the forum and no emails or phone are allowed, the process of fixing something becomes lengthy and not quite professional.
    the first question should have been "what are you using?"
    1. i am using VS2008 SP1
    2. the telerik.web.design is registered (2 versions - 2009.1.402.20 and 2009.1.402.35) in GAC (Global Assembly Cache) - the blog from Atanas Korchev fell short to give all the instructions (the discussions span over 3 months for people trying to figure out what he said - if is clear for you does not mean that applies to everyone - see the blog):
        a. where is GAC located
        b. how you install or remove a registration - is not just copy or delete
        c. which is the proper configuration (which dll goes where) i am not sure i have the right one now (see the versions above)
    3. the reason i have this problem is because i have 2 folders (as shown in the attachment i cannot upload) where telerik.web.ui.dll is present in C:\Documents and Settings\dans\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\g5_scyma01\Telerik.Web.UI.dll and C:\Documents and Settings\dans\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\lmm44d_l01\telerik.web.ui.dll. The error happened when a cast from [A]Telerik.Web.UI.RadGrid from one folder failed to cast to [B]Telerik.Web.UI.RadGrid from the other folder.
    Right now the name of the 2 folders are different then the one in the popup message - maybe they change after every compilation - i did not check the pattern.
    1. the solution seem to be to get rid of one folder but which one?
    2. do i need 2 design DLLs and if no which one to uninstall?
    3. the moment i used the first telerik control a reference for telerik.web.ui.dll was added into the project and the dll copied into the bin - if so why telerik is still looking in those 2 folders mentioned above and confuse itself?

    please let me know of any insight regarding the issues,

    regards,

    dan

  • Pavlina Pavlina admin's avatar

    Posted on Jul 13, 2009 (permalink)

    Hello,

    I am afraid that the provided information is not enough to determine the exact source of the issue you are facing.
    At this point in order to progress in the resolution of this matter I will ask you to stripped down a working version of your project and send it attached to a formal support ticket. Thus we could do our best to help you further in resolving it.

    Greetings,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  • Dan Scutaru avatar

    Posted on Jul 14, 2009 (permalink)

    Hello,

    I asked a question that is not related with any project: i have 2 DDLs telerik.web.design registered (2 versions - 2009.1.402.20 and 2009.1.402.35) in GAC (Global Assembly Cache); I installed first the controls for asp then uninstalled them and then installed the controls for asp AJAX, so can you tell me please which DLL belongs to ASP AJAX controls (this should be an easy answer, i hope)?
    regards,
    Dan

  • Posted on Jul 14, 2009 (permalink)

    I am experiencing the same problem. Please ensure that any solution provided in a support ticket is posted here.

  • Pavlina Pavlina admin's avatar

    Posted on Jul 15, 2009 (permalink)

    Hi Craig, 

    If you are using .NET 3.5 you should use the Telerik.Web.UI.dll from the Bin35 folder(version 2009.1.402.35) and not the one from the Bin folder of the installation zip archive.

    I suggest you review the following helps articles, which elaborates on this subject.
    Which file do I need to install?
    Add/Remove RadControls to the Global Assembly Cache
    Adding RadControls to the Visual Studio 2008 Toolbox

    Best wishes,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  • Posted on Jul 15, 2009 (permalink)

    I got it working. The problem for me was that even though I was referencing the correct dll the toolbox was pointing to older ones. I removed the toolbox items and added them back in and it worked fine.

  • Dan Scutaru avatar

    Posted on Jul 15, 2009 (permalink)

    Hi Craig,
    It looks you are lucky to get an answer right away; I was close to figure out how to clean up the installation of telerik controls but your answer sped up my way (thank you for it!) .

    1. I followed your advice and I ended up with 3 references (instead of 2 as before – not your fault is just it worked on your machine and setup) to telerik.ui.dll in C:\Documents and Settings\dans\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies (by the way you can delete all of them that belongs to your project, they will be recreated the moment you open it and run) and some pages were ok and some pages only part of the controls were not displayed because every control was looking for a different dll and you have only one in the bin directory of the project
    2. This behavior pointed even more to a poor installation of the controls for 2008 (I did not hear any complaints from my colleagues that use the controls in 2005)
    3. So I did this:
      1. ran a search for all the telerik.web.ui.dll in my computer
      2. deleted all the dlls that were not related with the project – the ones that I already mentioned and there are some Temporary ASP folders that shows the last projects you were working lately
      3. renamed the folder C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\bin where the version 20 was sitting to C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\booo
      4. deleted the dll from the application bin (version 20)and then dropped a control only to register a new dll, and this time was the 35

     

    I ran the application and finally I had only one reference in C:\Documents and Settings\dans\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies instead of 2 or 3.

     

    Thanks again Craig!

     

    Hello Pavlina,

     

    Regarding your request:

    1. By stripping down a working (!?) version you will end up with controls that have no data source and do nothing and the project is nowhere similar with mine and you will have something that can be achieved by reading the next point.
    2. If you have had just created a project in the same environment I mentioned previously and follow the same steps more then likely you will have the same issues. Maybe this is the path to follow if your team wants these issues solved.
    3. Please read the posted issues carefully and answer the questions which do not need any testing – I asked the question which dll goes with which version but Craig got the answer (do I need him to post same problem in order for me to have an answer?).

     

    Best wishes,

    The troubleshooting team.

     

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > Error creating template groups - for all controls