为什么IIS Express会在加载JavaScript和CSS时返回HTTP 500错误? [英] Why is IIS Express returning HTTP 500 errors loading javascript and CSS?

查看:100
本文介绍了为什么IIS Express会在加载JavaScript和CSS时返回HTTP 500错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用IIS Express进行本地调试开发ASP.NET MVC5解决方案.通常,Chrome浏览器会报告HTTP500错误,以尝试加载某些JS和CSS文件(某些使用MVC的内置捆绑和缩小功能,某些使用其自身).

I am trying to develop an ASP.NET MVC5 solution using IIS Express for local debugging. Frequently, Chrome will report HTTP500 errors trying to load certain JS and CSS files (some using the built in bundling and minification feature of MVC, some on their own).

正在处理此问题,我该如何阻止它?

WTH is going on with this and how do I stop it?

谢谢, 马修

推荐答案

有效的工作如下.我正在使用Visual Studio 2015.

What helped worked is as follows. I am using Visual Studio 2015.

  1. 关闭Visual Studio解决方案.实际上,我关闭了Visual Studio本身
  2. 在解决方案文件夹(包含.sln文件和项目文件夹的文件夹)中,您应该找到.vs文件夹.我已经删除了该文件夹.
  3. 重新启动Visual Studio并加载解决方案.

现在一切正常.

我猜的原因是,.vs文件夹内的config文件夹具有applicationhost.config文件.那有一些设置问题.

The reason I guess is, the config folder inside of .vs folder has the applicationhost.config file. That is having some setting issues.

这篇关于为什么IIS Express会在加载JavaScript和CSS时返回HTTP 500错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆