100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > combres java_ASP.NET MVC3 Combres错误:'System.Web.Mvc.UrlHelper'不包含'CombresLink'的定义

combres java_ASP.NET MVC3 Combres错误:'System.Web.Mvc.UrlHelper'不包含'CombresLink'的定义

时间:2020-07-04 11:51:00

相关推荐

combres java_ASP.NET MVC3 Combres错误:'System.Web.Mvc.UrlHelper'不包含'CombresLink'的定义

我正试图在其文档中的this tutorial之后的 MVC 3站点上设置Combres。

我遵循了所有的步骤,但是当我运行时出现以下错误:

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: 'System.Web.Mvc.UrlHelper' does not contain a definition for 'CombresLink' and no extension method 'CombresLink' accepting a first argument of type 'System.Web.Mvc.UrlHelper' could be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 5:

Line 6: @Sprite.ImportStylesheet("~/App_Sprites/")

---> Line 7: @bresLink("siteJs")

Line 8:

Line 9: @RenderSection("HeadScripts", required: false)siteJs是conbres.xml文件中的javascript资源集引用。

在我的网络配置中,我有:

(这是使用不同版本的System.Web.Routing.UrlRoutingModule,而不是本教程中提到的版本。如果我尝试从教程中引用版本,我不能因为我没有较旧的DLL。)

我该如何正确设置它?

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。