"Telerik" could not be found in the global namespace

I am currently working on an ASP.NET Web Form project that uses Telerik Ajax Version 2015.2.623.45, I added Telerik.Web.UI.dll , Telerik.Web. Design.dll in my project link but it keeps giving me errors saying

The type or namespace name 'Telerik' could not be found in the global namespace (are you missing an assembly reference?)

Here is some information about my project, if it might help:

I am using .NET Framework 4 using inline mode,

property dll

Aliases

is "global" and property Copy Local

is True

and mine web.config

contains the following parts:

<controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
</controls>
        ...
        ...
<httpHandlers>
        <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession, Telerik.Web.UI" validate="false"/>
        <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false"/>
        <add verb="*" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false"/>
        <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" validate="false"/>
</httpHandlers>
        ...
        ...
<compilation debug="true" targetFramework="4.0">
        <assemblies>
          <add assembly="Telerik.Web.UI.RadTextBox, Telerik.Web.UI, Version=2015.2.623.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
          <add assembly="Telerik.Web.UI.RadAsyncUpload, Telerik.Web.UI, Version=2015.2.623.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
          <add assembly="Telerik.Web.UI.RadAjaxManagerProxy, Telerik.Web.UI, Version=2015.2.623.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
          <add assembly="Telerik.Web.UI.RadCodeBlock, Telerik.Web.UI, Version=2015.2.623.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
            ...
            ...
        </assemblies>
</compilation>
          
         ...
         ...
         
<handlers>
          <remove name="Telerik_Web_UI_WebResource_axd"/>
          <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
          <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
          <remove name="Telerik_RadUploadProgressHandler_ashx"/>
          <add name="Telerik.Web.UI.WebResource.axd" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResourceSession, Telerik.Web.UI" preCondition="integratedMode"/>
          <add name="Telerik.Web.UI.SpellCheckHandler.axd" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" preCondition="integratedMode"/>
          <add name="Telerik.Web.UI.DialogHandler.axd" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" preCondition="integratedMode"/>
          <add name="Telerik.RadUploadProgressHandler.ashx" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode"/>
</handlers>

        
      

Run codeHide result


I've Googled a lot and tried the whole method on the Telerik forum but it doesn't help ... Can anyone help me and tell me what I'm missing and how can I link to correctly Telerik.*.dll

?

+4


source to share


4 answers


You can try removing the links and adding them again. In the properties of links, "Copy Local" should be set to true (but I think this is the default). Also, make sure you add them to the correct project in your solution! (It worked once.)

Finally, make sure the DLL you are linking to is built on the same version of the .NET Framework that your project is targeting. If it is not, you will receive the following warning when building:



Warning 1576 The primary reference "Telerik.Web.Design, Version=2014.2.724.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".

+1


source


Another way is to just add missing links, this can give you an indication of missing dlls missing dlls . Your telerik dll files should be in C: \ Programe Files (x86) \ Progress



0


source


Have you tried using Telerik ASP.NET AJAX VS Extensions. To transform your project using Telerik ASP.NET AJAX VS Extensions, follow these steps: Select your website project in Visual Studio Solution Explorer. From the Visual Studio menu select Telerik → UI for ASP.NET AJAX → Convert to Telerik Website Use the setup wizard to convert your website. You can find more information about the configuration wizard options in our documentation at http://docs.telerik.com/devtools/aspnet-ajax/general-information/integration-with-visual-studio/visual-studio-extensions/creation-and -configuration-wizard . If you still prefer to manage Telerik assets manually in your project, you can take a look athttp://docs.telerik.com/devtools/aspnet-ajax/general-information/adding-the-telerik-controls-to-your-project .

0


source


first of all check the target platform of your current project then check the build version of Telerik Control in 2 parts: one in the toolbar and the other in the reference section of the project, they should all be the same.

for build version and Framework details check link:

https://docs.telerik.com/devtools/aspnet-ajax/installation/included-assemblies

0


source







All Articles