This is a migrated thread and some comments may be shown as answers.

RadGrid is Not a Known Element Error

22 Answers 1682 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 21 Jan 2010, 08:46 PM

I have created a content page which I will use with my Master Page.
When I drag and drop my RadGrid onto my page I get an ASP Error

<telerick:RadGrid -
Element RadGrid is not a known element.  This can occur if there is a compliation error in the website, or the web.config file is missing.

<HeaderContextMenu -
Validation (xhtml 1.0 Transiational) "Element 'header' is not supported


I started to get this error after I created my master page - Here is what I have in the Content file...

<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Organization.aspx.vb" Inherits="Basic.Organization1"   
    title="Untitled Page" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">  
 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource> 
    <br /> 
      
    <telerik:RadGrid ID="Organization" runat="server">  
        <HeaderContextMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </HeaderContextMenu> 
 
        <MasterTableView> 
        <RowIndicatorColumn> 
        <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
 
        <ExpandCollapseColumn> 
        <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        </MasterTableView> 
 
        <FilterMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 
</asp:Content> 

I can run and everything works as it should, I just get a bunch of warnings...

22 Answers, 1 is accepted

Sort by
0
Nathan
Top achievements
Rank 1
answered on 21 Jan 2010, 09:03 PM
Hmmm...I just closed out of my project and went back in and everything looks fine.

What happened?
0
Doug Beard
Top achievements
Rank 1
answered on 12 Feb 2010, 04:24 PM
I have this problem.  It happens inconsistently, but often.
Closing VS will solve the problem temporarily.  Also my designer files are no longer updating for Telerik controls added to the page.  It's becoming a big headache that I haven't been able to solve.
0
Nathan
Top achievements
Rank 1
answered on 12 Feb 2010, 07:16 PM
Good to know I am not alone.
0
Erjan Gavalji
Telerik team
answered on 15 Feb 2010, 11:07 AM
Hi guys,

@Nathan: This error most often happens when there is a discrepancy between the Telerik.Web.UI assembly (the assembly, containing the runtime definitions of the controls) and its Telerik.Web.Design counterpart (the assembly, containing the Visual Studio design time definitions).
Can you please, check if there is a Telerik.Web.Design assembly with version, corresponding to the Telerik.Web.UI one in the project's BIN exists in the GAC? Can you ensure you're running Visual Studio 2008 SP1?

@Doug, can you observe if the error happens after performing a drag-and-drop of a control from the Visual Studio Toolbox? It could be that the ToolBox is populated with controls from a Telerik.Web.UI assembly, having a different version than the one in the project's BIN. Thus, when a drag-and-drop is performed, the IDE loads the assembly twice in its AppDomain, causing the problem. A consequent close and start of the IDE causes a new, clean AppDomain to be created, which solves the problem.

Kind regards,
Erjan Gavalji
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Nathan
Top achievements
Rank 1
answered on 17 Feb 2010, 02:36 PM
Erjan,

When checking my bin folder I have:
  Telerik.Web.UI.dll
  Telerik.Web.UI.xml

I could not locate the Telerik.Web.Design.

I do not believe I have SP1 of VS 2008.  I will download that now.
0
Doug Beard
Top achievements
Rank 1
answered on 17 Feb 2010, 02:38 PM
I think you're right, the assemblies were out of whack.

0
Erjan Gavalji
Telerik team
answered on 17 Feb 2010, 03:01 PM
Hi guys,

@Doug, I'm glad that's fixed now.

@Nathan, by default the Telerik.Web.Design assembly should reside in the GAC (added there by the installer). In that case, when you have Visual Studio 2008 SP1 you should not experience the design time errors. Please, check the GAC for that assembly. One of the instances should have the same version as the Telerik.Web.UI assembly the project uses.

Best,
Erjan Gavalji
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Erjan Gavalji
Telerik team
answered on 17 Feb 2010, 03:05 PM
Nathan,

I think I didn't get you the first time. You might not have the Telerik.Web.Design assembly in the GAC if you've not used the installer. Please, follow the steps below:
  • close all Visual Studio instances
  • open a Visual Studio command prompt
  • navigate to the folder, where you've extracted RadControls
  • run the following command:
    gacutil /i Telerik.Web.UI.dll

Let me know if that helps.

Kind regards,
Erjan Gavalji
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Saju Samuel
Top achievements
Rank 1
answered on 07 Apr 2011, 10:44 PM
I have this issue on and off after updating to Telerik v2011.1.315.35 a week ago. This is one the three versions of Telerik.Web.Design in the GAC. Looking in my web's bin folder I have Telerik.Web.UI.dll with the same version. I used the installer, followed by the Project upgrade wizard. Telerik.Web.UI.dll is NOT in the GAC - should it be? There is a Telerik.Web.UI.VSX, Version=2009.2.630.0 though. It's from an earlier install. I am using VS2008 SP1 targeting .Net 3.5.
Can you help me resolve this?
0
Erjan Gavalji
Telerik team
answered on 08 Apr 2011, 03:07 PM
Hi Saju,

By default the Telerik.Web.UI assembly shouldn't reside in the GAC, so no worries about that.
The Telerik.Web.UI.VSX assembly you've found in the GAC is part of the older version of the VSExtensions. The uninstallation of the previous install should have removed it, as the latest versions deploy the VSExtensions assembly in the install folder. Did you uninstall the previous RadControls version?

As per the error, can you try the following steps?
  • Close all Visual Studio instances
  • Start a Windows Explorer and navigate to the %localappdata%\Microsoft\VisualStudio\9.0\ProjectAssemblies folder
  • Delete its contents
  • Load the project again

Let me know if that helps.

Kind regards,
Erjan Gavalji
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Saju Samuel
Top achievements
Rank 1
answered on 08 Apr 2011, 05:42 PM
Erjan,
I did not uninstall the previous version Q2 2009, as the Q1 2011 installer did not say anything about it. I manually uninstalled it today, and Q1 2011 seems to still be working.
I closed all VS instances and purged the 'ProjectAssemblies' folder. Upon restarting VS and running the project the folder remained empty.
I am not seeing the problem now, but I'll reply back if there's a recurrence.
Thanks
0
Saju Samuel
Top achievements
Rank 1
answered on 08 Apr 2011, 06:40 PM
Erjan,
Uninstalling the old Q2 2009 version caused the Telerik toolbox section to disappear in VS2008, so I then un/reinstalled Q1 2011, but still no toolbox. I ran Launch Toolbox Configurator, and it errors out with 'Telerik VSExtensions: UpgradeToolbox: Failed to restart Visual Studio (Toolbox upgrade failed). Still no Telerik in the toolbox, so I'm reduced to manually coding the markup.
What happened?
Saju
0
Erjan Gavalji
Telerik team
answered on 11 Apr 2011, 05:18 PM
Hi Saju,

We identified that the Toolbox Controls Installer package (part of the Visual Studio distribution on which the RadControls Toolbox Item population relies) works fine with Visual Studio 2008 after a Visual Studio restart. To my regret there are (still) undetermined circumstances where Visual Studio cannot get automatically restarted so that the Toolbox Item population takes effect.

Did you try manually restarting Visual Studio?

Kind regards,
Erjan Gavalji
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Saju Samuel
Top achievements
Rank 1
answered on 11 Apr 2011, 06:02 PM
Erjan,
I shut down the computer over the weekend. When I restarted it, and opened two different instances of VS2008 with two different projects, neither had a Telerik section in the toolbox. I can manually enter rad controls in the markup, however.
Saju
0
Erjan Gavalji
Telerik team
answered on 12 Apr 2011, 09:20 AM
Hi Saju,

I'm really sorry this didn't work. I'm not sure of the reasons this happens, but the ToolboxControlsInstaller (part of Visual Studio) seems to "get stuck" sometimes. Below are the steps that helped us have the Visual Studio 2008 Toolbox reset successfully once this happened locally. Can you try them please?

Please note, that the operation involves modifying the registry and you should be very careful when executing it.

  1. Close all Visual Studio instances
  2. run Regedit.exe
  3. Navigate to the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ToolboxControlsInstallerCache key and delete the entries, starting with Telerik.Web.UI.
  4. Navigate to the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ToolboxControlsInstaller key and delete the entries, starting with Telerik.Web.UI.
  5. Navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\ToolboxControlsInstaller key and delete the entries, starting with Telerik.Web.UI. Please note, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\ToolboxControlsInstaller on a 32-bit machine.
  6. Start Windows Explorer
  7. Navigate to the %localappdata%\Microsoft\VisualStudio\9.0 folder
  8. Delete the *.tbd files
  9. Start Visual Studio and load a WebSite, load an ASPX page
  10. Verify that the Toolbox does not contain any RadControls entries
  11. Run the ToolboxConfigurator and choose a distribution
  12. Restart Visual Studio manually after the completion of the ToolboxConfigurator
  13. Check if the Toolbox contains the items now.

Kind regards,
Erjan Gavalji
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Daniel
Top achievements
Rank 1
answered on 20 Jun 2019, 01:59 PM
I know this is an old post, but I am having a similar problem with my RadCheckBox element. My project bin has both the UI and design dll's, but I couldn't find anything in the GAC for telerik. I'm not sure if I'm looking in the right place for that though. I'm using VS 2017. Any help is appreciated.
0
Nikola
Telerik team
answered on 25 Jun 2019, 07:26 AM
Hello Daniel,

The thread is fairly old and we have changed how we deploy our Telerik UI for ASP.NET AJAX extensions since it was opened. For instance we no longer deploy any assemblies for this product in the GAC. Therefore please provide us with more details as to what exactly is the issue you are facing, so we can provide a more accurate solution. Also if you have already tried any of the suggestions down the thread and they didn't help I would appreciate it if you mention that too.

I am looking forward to your reply.

Regards,
Nikola
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Daniel
Top achievements
Rank 1
answered on 26 Jun 2019, 01:50 PM

Hello Nikola,

Thanks for your reply! My issue is that I cannot use the RadCheckBox control. It doesn't show up in my intellisense and if I type it in I get a "radcheckbox is not a known element" error. And it says "This can occur if there is a compilation error in the Web site, or the web.config file is missing. Neither of which seems to be the issue. It compiles and runs just fine and I have my web.config. This is the only control I can't seemingly use. I've restarted VS a few times too, to no avail.

 

Let me know if you need more specific info.

 

Thanks,

Daniel

0
Rumen
Telerik team
answered on 26 Jun 2019, 02:05 PM
Hello Daniel,

Is it possible that you are using an old version of Telerik.Web.UI.dll which does not offer the CheckBox control?

Can you please upgrade to version 2019.2.514 and test again?

Here you are the upgrade instruction: Upgrade to a Newer Version of Telerik® UI for ASP.NET AJAX.

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Daniel
Top achievements
Rank 1
answered on 27 Jun 2019, 12:55 PM

Hello Rumen,

That is very possible. I just came into this project and am helping to upgrade it. I will check into that and let you know if it works.

Thanks!

0
Daniel
Top achievements
Rank 1
answered on 27 Jun 2019, 01:20 PM

Rumen,

I just got the extension installed on VS, but it is asking me to download a trial. Does that mean it will stop working after 30 days or something? As I said, I just came onto this project. I didn't even know Telerik was a purchased product. I never used it before. I just want to make sure I'm not downloading something that will disappear in a month.

0
Rumen
Telerik team
answered on 28 Jun 2019, 07:59 AM
Hi Daniel,

The trial version of Telerik.Web.UI.dll (Telerik UI for ASP.NET AJAX) is fully functional and the only difference with the paid version is that it randomly throws license errors on the page. It will continue to work even when the trial period expires.

You can try to perform a manual upgrade since this way you can control and observe every step:

- Log in and download the Purchased version Telerik_UI_for_ASP.NET_AJAX_2019_2_514_Dev_hotfix.zip from https://www.telerik.com/account/product-download?product=RCAJAX
- Backup your project
- From the BinXX installation folder obtain the Telerik.Web.UI.dll and replace the one in your project bin folder.
- More details instructions are available at Manual Upgrade.

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Nathan
Top achievements
Rank 1
Answers by
Nathan
Top achievements
Rank 1
Doug Beard
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Saju Samuel
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Nikola
Telerik team
Rumen
Telerik team
Share this question
or