我正在使用asp.net捆绑。我的代码是
public static void RegisterBundles(BundleCollection bundle)
{
var commonStylesBundle = new CustomStyleBundle("~/Users/bundles/css");
commonStylesBundle.Include(
"~/Users/css/reset.css",
"~/Users/css/fullcalendar.css",
"~/Users/css/datatable.css",
"~/Users/css/prettyPhoto.css",
"~/Users/css/elfinder.css",
"~/Users/css/main.css",
"~/Users/css/tiny-carousel.css",
//"~/Users/css/spinners.css",
"~/Users/js/plugins/bootstrap-tour-0.9.1/css/bootstrap-tour-standalone.css",
//"~/css/css-d.css",
"~/Users/css/developer_uicustom.css",
"~/Users/js/plugins/Jquery-datetimepicker/css/jquery-ui-timepicker-addon.css",
"~/css/smart_wizard.css",
"~/Users/js/plugins/qTip/jquery.qtip.min.css"
);
//commonStylesBundle.Orderer = nullOrderer;
bundle.Add(commonStylesBundle);
}
在aspx页面上我写了这一行
<%: Styles.Render("~/Users/bundles/css") %>
并在web.config
文件中将调试编译设置为false
:
<compilation debug="false" targetFramework="4.5" batch="false"
optimizeCompilations="true">
它在本地主机上工作正常,但当我在托管服务器上移动此工作时,它说404文件未找到。我无法跟踪任何错误。如何在托管服务器上解决此问题,以便捆绑开始重新开始工作?