Asp.net mvc 4 绑定失败,因为路径错误为控制器路径

Asp.net mvc 4 绑定失败,因为路径错误为控制器路径,asp.net-mvc-4,bundling-and-minification,Asp.net Mvc 4,Bundling And Minification,在我的包里我有 bundles.Add(new StyleBundle("~/Content/css/css").Include("~/Content/css/wireframe.css?v=1.0")); 在我看来,我有 @Styles.Render("~/Content/css/css") 但是当我访问相关页面时,我得到了一个404,上面有这个错误 [HttpException]: The controller for path '/Content/css/css&

在我的包里我有

bundles.Add(new StyleBundle("~/Content/css/css").Include("~/Content/css/wireframe.css?v=1.0"));
在我看来,我有

@Styles.Render("~/Content/css/css")
但是当我访问相关页面时,我得到了一个404,上面有这个错误

[HttpException]: The controller for path '/Content/css/css' was not found or does not implement IController.

似乎控制器的路径被混淆了。我是否更改WebApiConfig和RouteConfig文件?

学童错误。我在Global.asax中错过了这个

BundleConfig.RegisterBundles(BundleTable.Bundles);

谢谢你,我也错过了!