Compiler Error Message: CS1061: 'HtmlHelper<dynamic>' does not contain a definition for 'Kendo'

1 Answer 3923 Views
General Discussions
Pawan
Top achievements
Rank 1
Pawan asked on 28 Mar 2017, 10:54 PM
I installed "Kendo UI Profiessional" v 2017.1.223, using Telerik Control Panel. I then created a simple "ASP.Net Web Application" (MVC) project in VS 2015. I then installed "Kendo.Mvc" in the project using NuGet package manager. Thus, "Kendo.Mvc" got added under "Reference". I have also added the following in web.config file that is under "Views" (not in the main Web.cofig file) :

<add namespace="Kendo.Mvc.UI" />


My View contains just one line, that is:

@(Html.Kendo().DatePicker().Name("datepicker"))



When I run the application, I get the following error:

Server Error in '/' Application.
 
Compilation Error
 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
 
Compiler Error Message: CS1061: 'HtmlHelper<dynamic>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)
 
Source Error:
 
 
Line 1:  @(Html.Kendo().DatePicker().Name("datepicker"))
Line 2: 
 
Source File: c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml    Line: 1
 
 
Show Detailed Compiler Output:
 
 
C:\Program Files (x86)\IIS Express>c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\bin\roslyn\csc.exe /t:library /utf8output /nostdlib+ /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f1791cfc\00fedeb6_12ccd101\Microsoft.AspNetCore.Diagnostics.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\92247743\0067245d_74c5d101\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\90044040\00fedeb6_12ccd101\Microsoft.AspNetCore.DataProtection.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d2c50e18\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\19f209ab\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\0eba250e\005841b9_12ccd101\Microsoft.Extensions.Caching.Memory.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\5455a925\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Formatters.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\e3833175\005841b9_12ccd101\Microsoft.Extensions.DependencyInjection.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\c97f9c34\005841b9_12ccd101\Microsoft.Extensions.FileProviders.Physical.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a166e5a7\00fedeb6_12ccd101\Microsoft.AspNetCore.JsonPatch.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\31213991\00bc6bbe_accbd101\Microsoft.Extensions.DependencyModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\47b4ad8c\002b10b8_12ccd101\Microsoft.AspNetCore.Razor.Runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\9241f5b5\005841b9_12ccd101\Microsoft.Extensions.Globalization.CultureInfoCache.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\1761ee9b\00fedeb6_12ccd101\Microsoft.AspNetCore.Cryptography.Internal.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\210bd1b1\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.ViewFeatures.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d548f9b8\009fadb9_8bc7d101\Kendo.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\e27776e5\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Razor.Host.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Collections.Immutable\v4.0_1.1.37.0__b03f5f7f11d50a3a\System.Collections.Immutable.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\6769c9a2\00a9c4ea_2350d201\Microsoft.AI.WindowsServer.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\ef0793d8\00a37050_533ad001\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\6ff62d98\002b10b8_12ccd101\Microsoft.AspNetCore.Routing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a399d9bc\005841b9_12ccd101\Microsoft.Extensions.Localization.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\4702e828\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.Cors.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\28877dbe\fceb1810_c3a7d201\TryTelerik.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\de912f90\0038bfe9_a7a9d001\Microsoft.CodeAnalysis.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d77c2df5\00fedeb6_12ccd101\Microsoft.AspNetCore.Html.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\ecaf405e\00a37050_533ad001\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\644de8e3\0014af3a_e3c3d101\System.Text.Encodings.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\58699317\00fedeb6_12ccd101\Microsoft.AspNetCore.Localization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fff6a83a\00fedeb6_12ccd101\Microsoft.AspNetCore.DataProtection.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\5235512e\00a37050_533ad001\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\255fd3e9\00856c07_e3c3d101\System.ComponentModel.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\6497b2ab\00e8e097_764fd201\Microsoft.ApplicationInsights.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a97aaec9\0047b3b8_2350d201\Microsoft.AI.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\0b21a7c4\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\4e7a8543\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\3ed3952a\005841b9_12ccd101\Microsoft.Extensions.Configuration.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2c22be85\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\9aaa5dcc\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.ApiExplorer.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2323f0bc\005841b9_12ccd101\Microsoft.Extensions.FileSystemGlobbing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\947e4a27\0063aead_c74ad201\Microsoft.AI.Agent.Intercept.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2c456958\005841b9_12ccd101\Microsoft.Extensions.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f8b33333\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\8cb11b63\00fedeb6_12ccd101\Microsoft.AspNetCore.Hosting.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d4344293\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Localization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\3e81f2e2\000c000b_e3c3d101\System.Diagnostics.DiagnosticSource.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2ef75195\005841b9_12ccd101\Microsoft.Extensions.Localization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\e8f6da9c\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.TagHelpers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d120fd55\002b10b8_12ccd101\Microsoft.AspNetCore.Routing.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f1b20bb3\00d1a702_e3c3d101\System.Buffers.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2b5b2748\0043d8e6_0821cd01\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\bb18d9aa\008f3abd_accbd101\Microsoft.DotNet.InternalAbstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\77b7f9dd\00a37050_533ad001\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\eedbf32d\0065f0ea_a7a9d001\Microsoft.CodeAnalysis.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\af6bd456\005841b9_12ccd101\Microsoft.Extensions.FileProviders.Composite.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\95f93a1a\005841b9_12ccd101\Microsoft.Extensions.Caching.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\30acecea\005841b9_12ccd101\Microsoft.Extensions.DependencyInjection.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\ddd76814\005841b9_12ccd101\Microsoft.Extensions.Logging.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\073ff0de\0058dcad_b3a6d001\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\5b3dbd7a\005841b9_12ccd101\Microsoft.Extensions.WebEncoders.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\85333a01\005841b9_12ccd101\Microsoft.Extensions.FileProviders.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a8418927\00fedeb6_12ccd101\Microsoft.AspNetCore.Cors.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\834e6d9b\00fedeb6_12ccd101\Microsoft.AspNetCore.Hosting.Server.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\59cf3159\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.Features.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f59c2b0c\00d1adb5_12ccd101\Microsoft.AspNetCore.Authorization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\03249af6\000c000b_e3c3d101\System.ComponentModel.TypeConverter.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_global.asax.z8vazoto.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\78225818\0065f0ea_a7a9d001\System.Reflection.Metadata.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\4959c6c5\0032126c_774fd201\Microsoft.AI.ServerTelemetryChannel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\58786417\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Formatters.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f8e173b1\00a9c4ea_2350d201\Microsoft.AI.PerfCounterCollector.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fb1d555b\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\3324d64b\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\08710bdb\0009c301_533ad001\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\acebe475\00d1adb5_12ccd101\Microsoft.AspNetCore.Antiforgery.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\dceea3fb\0066620d_e3c3d101\System.Data.Common.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\bdddc8e3\005841b9_12ccd101\Microsoft.Net.Http.Headers.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f1df28e0\005841b9_12ccd101\Microsoft.Extensions.ObjectPool.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fb3c5e06\002b10b8_12ccd101\Microsoft.AspNetCore.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fd20507f\00ffb83c_2350d201\Microsoft.AI.DependencyCollector.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\8f655118\00441b0a_533ad001\System.Web.Razor.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\998079cb\002b10b8_12ccd101\Microsoft.AspNetCore.WebUtilities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\abb7b7b0\005841b9_12ccd101\Microsoft.Extensions.Options.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\c38742ee\005841b9_12ccd101\Microsoft.Extensions.PlatformAbstractions.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_Web_index.cshtml.6373d792.slxlg9h_.dll" /D:DEBUG /debug+ /optimize- /warnaserror- /w:4 /nowarn:1659;1699;1701;612;618 /langversion:6 /nowarn:1659;1699;1701  "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_Web_index.cshtml.6373d792.slxlg9h_.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_Web_index.cshtml.6373d792.slxlg9h_.1.cs"
 
 
Microsoft (R) Visual C# Compiler version 1.0.0.50618
Copyright (C) Microsoft Corporation. All rights reserved.
 
c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml(1,12): error CS1061: 'HtmlHelper<dynamic>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)
 
Show Complete Compilation Source:
 
 
Line 1:    #pragma checksum "c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "52F2ED52085D445129A34B8F54DF8323049258AB"
Line 2:    //------------------------------------------------------------------------------
Line 3:    // <auto-generated>
Line 4:    //     This code was generated by a tool.
Line 5:    //     Runtime Version:4.0.30319.42000
Line 6:    //
Line 7:    //     Changes to this file may cause incorrect behavior and will be lost if
Line 8:    //     the code is regenerated.
Line 9:    // </auto-generated>
Line 10:   //------------------------------------------------------------------------------
Line 11:  
Line 12:   namespace ASP {
Line 13:       using System;
Line 14:       using System.Collections.Generic;
Line 15:       using System.IO;
Line 16:       using System.Linq;
Line 17:       using System.Net;
Line 18:       using System.Web;
Line 19:       using System.Web.Helpers;
Line 20:       using System.Web.Security;
Line 21:       using System.Web.UI;
Line 22:       using System.Web.WebPages;
Line 23:       using System.Web.Mvc;
Line 24:       using System.Web.Mvc.Ajax;
Line 25:       using System.Web.Mvc.Html;
Line 26:       using System.Web.Routing;
Line 27:       using TryTelerik;
Line 28:       using Kendo.Mvc.UI;
Line 29:      
Line 30:      
Line 31:       public class _Page_Views_Default_Index_cshtml : System.Web.Mvc.WebViewPage<dynamic> {
Line 32:          
Line 33:   #line hidden
Line 34:          
Line 35:           public _Page_Views_Default_Index_cshtml() {
Line 36:           }
Line 37:          
Line 38:           protected ASP.global_asax ApplicationInstance {
Line 39:               get {
Line 40:                   return ((ASP.global_asax)(Context.ApplicationInstance));
Line 41:               }
Line 42:           }
Line 43:          
Line 44:           public override void Execute() {
Line 45:   BeginContext("~/Views/Default/Index.cshtml", 2, 44, false);
Line 46:  
Line 47:              
Line 48:               #line 1 "c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml"
Line 49:   Write(Html.Kendo().DatePicker().Name("datepicker"));
Line 50:  
Line 51:              
Line 52:               #line default
Line 53:               #line hidden
Line 54:   EndContext("~/Views/Default/Index.cshtml", 2, 44, false);
Line 55:  
Line 56:   BeginContext("~/Views/Default/Index.cshtml", 47, 4, true);
Line 57:  
Line 58:   WriteLiteral("\r\n\r\n");
Line 59:  
Line 60:   EndContext("~/Views/Default/Index.cshtml", 47, 4, true);
Line 61:  
Line 62:           }
Line 63:       }
Line 64:   }
Line 65:  
 
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1086.0

 

Please find in attachment Web.config files (the one from Views folder and the main one) and the Layout page.

1 Answer, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 30 Mar 2017, 03:04 PM
Hi,

This error indicated that you there is Kendo.MVC.Core version from Nuget.org installed instead of Kendo.MVC 5 version from the private feed. Here is a video showing the reproduction on my end for this case:
https://www.screencast.com/t/6F5N7zHTWfRu
If this is the case also on your end I would suggest you to follow the instruction in our documentation that describes the installation process through the Nuget Package manager for registered users:
http://docs.telerik.com/aspnet-mvc/getting-started/nuget-install

Here is a screenshot that is showing the expected packages: https://www.screencast.com/t/Go7JIgqq

You need to also follow the instructions in the getting started article: 
http://docs.telerik.com/aspnet-mvc/getting-started/asp-net-mvc-5

Regards,
Misho
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Pawan
Top achievements
Rank 1
Answers by
Misho
Telerik team
Share this question
or