首页 > Web开发 > 详细

MVC4脚本压缩 BundleTable bundles 404错误

时间:2014-03-01 00:28:51      阅读:750      评论:0      收藏:0      [点我收藏+]

在发布网站的时候,因为使用了MVC4的新特性BundleTable,造成访问的时候js和css报了404错误,

bubuko.com,布布扣

google了以后, 有朋友说是因为要在webservice添加

    <modules runAllManagedModulesForAllRequests="true">  //当前这一行
      <add name="WwwSubDomainModule" type="BlogEngine.Core.Web.HttpModules.WwwSubDomainModule, BlogEngine.Core"/>
      <add name="UrlRewrite" type="BlogEngine.Core.Web.HttpModules.UrlRewrite, BlogEngine.Core"/>
      <add name="CompressionModule" type="BlogEngine.Core.Web.HttpModules.CompressionModule, BlogEngine.Core"/>
      <add name="ReferrerModule" type="BlogEngine.Core.Web.HttpModules.ReferrerModule, BlogEngine.Core"/>
      <add name="SecurityModule" type="BlogEngine.Core.Security, BlogEngine.Core"/>
      <add name="RightModule" type="BlogEngine.Core.Right, BlogEngine.Core"/>
    </modules>

 添加了以后还是报错。

然后自己摸索了,在配置IIS程序池的时候,将托管模式设置为“集成”就神奇的好了。。。

还得摸索原因啊。。

MVC4脚本压缩 BundleTable bundles 404错误,布布扣,bubuko.com

MVC4脚本压缩 BundleTable bundles 404错误

原文:http://www.cnblogs.com/zhangpan1244/p/3573224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!