Kendo UI抛出CS1593:委托'System.Action'不接受1个参数 [英] Kendo UI throwing CS1593: Delegate 'System.Action' does not take 1 arguments
问题描述
这是一个正在运行的代码块,现在不起作用.我正在将Kendo UI用于MVC.错误是
Here is a block of code that was working and now isn't. I am using Kendo UI for MVC. The error is
CS1593:代理"System.Action"不带1个参数.
CS1593: Delegate 'System.Action' does not take 1 arguments.
这是一个较旧的网站;打开并运行后,显示工作版本为VS2010,我确实更新了Kendo和MVC,但未在此项目中进行更新.有什么想法吗?
This was an older site; opening and running shows the working version as VS2010, I did update Kendo and MVC, but not in this project. Any ideas?
@(Html.Kendo().Window()
.Name("Window")
.Title("Results")
.Content(@<text><div class="Result"></div></text>).Draggable()
.Resizable()
.Visible(false)
.Width(450)
.Actions(actions => actions.Minimize().Maximize().Close())
)
推荐答案
我找到了答案. 我已经从MVC3更新到MVC4 此更新将破坏3个聚会控制
I found the answer. I had updated from MVC3 to MVC4 This update will break 3 party controls
请阅读发行说明的这一部分 http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253815
please read this section of release notes http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253815
部分:安装ASP.NET MVC 4会破坏ASP.NET MVC 3 RTM应用程序.
section: Installing ASP.NET MVC 4 breaks ASP.NET MVC 3 RTM applications.
本节中的第3项不存在.更正后,一切正常.
Item 3 in this section was all that wasn't there. Once corrected, everything works fine.
这篇关于Kendo UI抛出CS1593:委托'System.Action'不接受1个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!