zoukankan      html  css  js  c++  java
  • MVC4脚本压缩 BundleTable bundles 404错误

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

    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程序池的时候,将托管模式设置为“集成”就神奇的好了。。。

    还得摸索原因啊。。

  • 相关阅读:
    正则表达式练习
    Linux下文件删除的原理
    (转)linux grep 正则表达式
    linux 需要记忆的知识
    linux 常用命令
    TestNG测试方法
    TestNG配置注解
    jquery 获取和设置 select下拉框的值
    Kings(状压DP)
    Tirp(状压DP)
  • 原文地址:https://www.cnblogs.com/zhangpan1244/p/3573224.html
Copyright © 2011-2022 走看看