Ashx 路线不起作用 - Piranha CMS - 无法加载资源
Posted
技术标签:
【中文标题】Ashx 路线不起作用 - Piranha CMS - 无法加载资源【英文标题】:Ashx route not working - Piranha CMS - Failed to load resource 【发布时间】:2014-02-06 06:47:04 【问题描述】:我正面临这个问题,但我不知道为什么。我该如何解决这个问题?
Failed to load resource: the server responded with a status of 404 (Not Found)
http://www.xxx/res.ashx/areas/manager/content/css/style.min.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://www.xxx/res.ashx/areas/manager/content/js/ext/jquery-1.7.2.min.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://www.xxx/res.ashx/areas/manager/content/js/jquery.manager.js
安装的食人鱼: https://github.com/nickvee/Piranha.Bootstrap/tree/master/Piranha.Bootstrap 在服务器上
原始位置是:http://www.xxx/content/css/style.min.css
【问题讨论】:
【参考方案1】:您安装的存储库已有 7 个月未更新,并且使用的是相当旧的 Piranha CMS (2.0.3) 版本。如果你需要它的支持,你必须询问 GitHub 上 Piranha.Bootstrap 存储库的作者,最好添加一个新问题 here。
【讨论】:
【参考方案2】:我在部署到服务器时遇到了同样的错误。
这是因为*.ashx
没有被任何程序处理。
尝试像这样配置 Handler Mapping:
【讨论】:
以上是关于Ashx 路线不起作用 - Piranha CMS - 无法加载资源的主要内容,如果未能解决你的问题,请参考以下文章
有人可以解释 Piranha.vNext CMS 中的“块”概念吗?