相关疑难解决方法(0)

IIS 7.5没有图像css js显示

我有两个Windows 2008 R2 x64服​​务器NLB,ARR共享配置.我在网络共享中有应用程序文件.ASP.net页面(.aspx)很好但没有CSS,图像,js工作.我也有一个.htm文件显示css和图像就好了.

在iis日志中,我确实看到了401.3消息.所以它似乎是权限,但不知道还有什么其他配置权限明智.

我在下面阅读了类似的问题:

MVC + IIS7 = CSS问题

https://serverfault.com/questions/70050/adding-a-virtual-directory-iis-7-5-windows-7-ultimate-x64/130322#130322

https://serverfault.com/questions/126978/iis-7-5-401-3-access-denied

我尝试了建议的解决方案 - 似乎没有工作(除非我错过了一些东西).任何意见是极大的赞赏!

javascript css image iis-7.5

25
推荐指数
3
解决办法
5万
查看次数

图像,CSS和JS未在MVC4应用程序中加载

我刚刚在我的服务器上部署了一个新的MVC4应用程序,并且没有加载一些CSS,JS和图像.例如,Chrome控制台说,

无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/themes/base/jquery-ui-1.8.20.custom.css

无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/select2.css

无法加载资源:服务器响应状态为500(内部服务器错误)http://beta.vinformative.com/Scripts/Plugins/select2.js

无法加载资源:服务器响应状态为500(内部服务器错误)http://beta.vinformative.com/Scripts/WineCreate.js

无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/images/logo_revisedsmall.png

它们都在他们提到的位置的服务器上提供.我整晚都在排除其他事情,所以我的眼睛有点模糊,也许我错过了一些明显的东西.你也可以在beta.vinformative.com的主页上看到这些错误.

以下是我的文件布局的截图: 在此输入图像描述

我正在使用捆绑并在发布模式下将网站发布到文件系统,但我不希望这会影响图像,不是吗?我会继续这个,但任何帮助将不胜感激!谢谢!

编辑请求捆绑配置:谢谢!

    public class BundleConfig
{
    // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
    public static void RegisterBundles(BundleCollection bundles)
    {
        bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/Libraries/jquery-{version}.js",
                    "~/Scripts/Plugins/jquery.loaderbutton.js",
                    "~/Scripts/Plugins/jquery.form.js"));

        bundles.Add(new ScriptBundle("~/bundles/base").Include(
                    "~/Scripts/Feedback.js",
                    "~/Scripts/Global.js",
                    "~/Scripts/WineSearch.js"
            ));

        bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                    "~/Scripts/Libraries/jquery-ui-{version}.js"));

        bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/Libraries/jquery.validate*"));

        bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                "~/Scripts/bootstrap/bootstrap.js",
                "~/Scripts/bootstrap/bootbox.js",
                "~/Scripts/bootstrap/bootstrap-notify.js"
            ));

        bundles.Add(new ScriptBundle("~/bundles/formhelpers").Include(
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-countries.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-countries.en_US.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-phone.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-phone.format.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-states.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-states.en_US.js"
            ));

        bundles.Add(new ScriptBundle("~/bundles/winedetails").Include(
            "~/Scripts/WineDetails.js",
            "~/Scripts/Plugins/jquery.uploadifive.js",
            "~/Scripts/Plugins/jquery.fileDownload.js",
            "~/Scripts/Plugins/jquery.fancybox.js",
            "~/Scripts/Plugins/jquery.fancybox-media.js", …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc iis-7 asp.net-mvc-4

5
推荐指数
1
解决办法
9459
查看次数

标签 统计

asp.net-mvc ×1

asp.net-mvc-4 ×1

css ×1

iis-7 ×1

iis-7.5 ×1

image ×1

javascript ×1