在IIS Express中无法启动asp.net核心Web应用程序

前端之家收集整理的这篇文章主要介绍了在IIS Express中无法启动asp.net核心Web应用程序前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[编辑]问题是BitDefender防病毒.
我遵循如何安装asp.net 5 beta 8的说明.我能够安装所有必要的文件没有任何问题.但是,每次选择Web模板并尝试使用IIS Express运行它时,会在显示错误之前加载几分钟:HTTP错误502.3 – 坏网关…
我尝试了这个 guide中的所有故障排除步骤,但没有成功.我查看了我的事件日志,并注意到以下两个条目:

The directory specified for caching compressed content C:\Users…Files\Clr4IntegratedAppPool is invalid. Static compression is being disabled.

并且:

The description for Event ID 1001 from source HttpPlatformHandler cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer,the display information had to be saved with the event.

The following information was included with the event:

Process ‘4528’ started successfully and is listening on port ‘x’.

我不完全确定这些警告/信息是否与我的问题有关.如果有人可以把这一点放在一起,那将是好的.我所知道的是我已经安装了HttpPlatformHandler.

我决定尝试另一个视觉工作室模板(空白模板),奇怪的是它的工作.然后,我创建了一个新的Web应用程序,并与项目属性一起玩,并注意到当我勾选复选框:“使用特定运行时间”并选择一个x64架构一切正常! :)但是当复选框未勾选(默认)时,或者当选中复选框并将体系结构设置为x86时,我得到相同的旧错误.

如何让它运行使用默认设置?还是我在这里遗漏的东西?

这是我的project.json文件

{
  "webroot": "wwwroot","userSecretsId": "aspnet5-WebApplication3-1a336a00-1f3e-432d-928e-f2669c4b0d94","version": "1.0.0-*","dependencies": {
    "EntityFramework.Commands": "7.0.0-beta8","EntityFramework.sqlServer": "7.0.0-beta8","Microsoft.AspNet.Authentication.Cookies": "1.0.0-beta8","Microsoft.AspNet.Authentication.Facebook": "1.0.0-beta8","Microsoft.AspNet.Authentication.Google": "1.0.0-beta8","Microsoft.AspNet.Authentication.MicrosoftAccount": "1.0.0-beta8","Microsoft.AspNet.Authentication.Twitter": "1.0.0-beta8","Microsoft.AspNet.Diagnostics": "1.0.0-beta8","Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta8","Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta8","Microsoft.AspNet.IISPlatformHandler": "1.0.0-beta8","Microsoft.AspNet.Mvc": "6.0.0-beta8","Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta8","Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8","Microsoft.AspNet.StaticFiles": "1.0.0-beta8","Microsoft.AspNet.Tooling.Razor": "1.0.0-beta8","Microsoft.Framework.Configuration.Abstractions": "1.0.0-beta8","Microsoft.Framework.Configuration.Json": "1.0.0-beta8","Microsoft.Framework.Configuration.UserSecrets": "1.0.0-beta8","Microsoft.Framework.Logging": "1.0.0-beta8","Microsoft.Framework.Logging.Console": "1.0.0-beta8","Microsoft.Framework.Logging.Debug" : "1.0.0-beta8","Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-beta8"
  },"commands": {
    "web": "Microsoft.AspNet.Server.Kestrel","ef": "EntityFramework.Commands"
  },"frameworks": {
    "dnx451": { },"dnxcore50": { }
  },"exclude": [
    "wwwroot","node_modules"
  ],"publishExclude": [
    "**.user","**.vspscc"
  ],"scripts": {
    "prepublish": [ "npm install","bower install","gulp clean","gulp min" ]
  }
}

这是我以前尝试过的,没有成功:

>以安全模式启动Visual Studio.
>清除Visual Studio缓存.
>修复Visual Studio 2015.
>卸载然后重新安装Visual Studio 2015.
>完全格式化我的电脑并重新安装.

其他信息:

>我正在运行Windows Enterprise 10.
>我正在运行Visual Studio 2015企业版.
>它已经工作了一到两次,但我无法识别任何
模式是什么时候.
>我只是想要一个可视化工作室ASP.net
5 MVC开箱即可运行.
>我尝试过不同的BETA版本和RC版本.

解决方法

所以我终于找到了这个问题的原因.

我在计算机上安装了BitDefender防病毒,这是由于某些奇怪的原因造成的.如原始帖子中提到的,我尝试禁用它,但没有工作.我不得不完全卸载软件:(

浪费时间 :(

猜你在找的asp.Net相关文章