gpt4 book ai didi

asp.net - 无法在 IIS Express 中启动 asp.net core web 应用程序

转载 作者:行者123 更新时间:2023-12-03 20:41:27 25 4
gpt4 key购买 nike

[编辑] 问题是 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 Enterprise。
  • 它已经工作了一两次,但我无法识别任何
    什么时候的模式。
  • 我只是想获得一个 Visual Studio ASP.net
    5 MVC 开箱即用的模板运行。
  • 我尝试过不同的 BETA 版本和 RC 版本。
  • 最佳答案

    所以我终于找到了问题的原因。

    我在计算机上安装了 BitDefender 防病毒软件,但出于某种奇怪的原因,它导致了这种行为。正如原帖中提到的,我确实尝试禁用它,但没有用。我不得不完全卸载软件:(

    浪费时间 :(

    关于asp.net - 无法在 IIS Express 中启动 asp.net core web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33527012/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com