C# HtmlHelper不包含“的定义”;剑道;?MVC剃须刀

C# HtmlHelper不包含“的定义”;剑道;?MVC剃须刀,c#,asp.net-mvc,razor,kendo-asp.net-mvc,C#,Asp.net Mvc,Razor,Kendo Asp.net Mvc,我认为这一行代码: @(Html.Kendo().MultiSelect() <link href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.common-material.min.css" rel="stylesheet" type="text/css" /> <link href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.mobile.

我认为这一行代码:

 @(Html.Kendo().MultiSelect()
<link href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.common-material.min.css" rel="stylesheet" type="text/css" />
<link href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<link href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.material.min.css" rel="stylesheet" type="text/css" />

<script src="https://kendo.cdn.telerik.com/2017.2.621/js/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2017.2.621/js/jszip.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2017.2.621/js/kendo.all.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2017.2.621/js/kendo.aspnetmvc.min.js"></script>
可悲的是,“剑道”的下划线是红色的。并说它缺少一个集合或对它的引用。 到目前为止,我所尝试的:

查看\u web.config:

 <namespaces>

    <add namespace="System.Web.Mvc" />
    <add namespace="System.Web.Mvc.Ajax" />
    <add namespace="System.Web.Mvc.Html" />
    <add namespace="System.Web.Optimization"/>
    <add namespace="System.Web.Routing" />
    <add namespace="Kendo.Mvc.UI" />
    <add namespace="Project" />

  </namespaces>
对于我遗漏了什么或做错了什么,有什么建议吗? 对不起我的英语

致意
提前感谢您的帮助。

当您在运行时打开页面时,它是否仍会抛出错误?我有时会注意到它看起来像Razor中的一个错误,但当我在运行时查看它时,没有问题。您是否在
控制器中导入了
剑道
的命名空间?是的。我在运行时也会遇到“不包含‘剑道’的定义”错误。我在控制器和视图中都有“使用剑道.Mvc.UI;”来测试它。将运行时错误添加到线程中。当你在运行时打开页面时,它是否仍会抛出错误?我有时会注意到它看起来像Razor中的一个错误,但当我在运行时查看它时,没有问题。您是否在
控制器中导入了
剑道
的命名空间?是的。我在运行时也会遇到“不包含‘剑道’定义”错误。我在控制器和视图中都有“使用剑道.Mvc.UI;”来测试它。将运行时错误添加到线程中。
    Severity    Code    Description Project File    Line    Suppression State
Error   CS1759  Cannot embed interop types from assembly 'Kendo.Mvc, Version=2016.2.616.0, Culture=neutral, PublicKeyToken=null' because it is missing either the 'System.Runtime.InteropServices.ImportedFromTypeLibAttribute' attribute or the 'System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute'