升级到v1.1后,ASP.NET Core将无法在IIS中运行 [英] ASP.NET Core won't run in IIS after upgrade to v1.1

查看:82
本文介绍了升级到v1.1后,ASP.NET Core将无法在IIS中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经升级了project.json以使用asp.net核心的新v1.1,现在当我尝试启动IIS Express进行调试时,出现以下错误:

I've upgraded my project.json to use the new v1.1 of asp.net core and now when I try to start IIS Express to debug, I get the following errors:


程序 [8784] dotnet.exe已退出,代码为-2147450749
(0x80008083)。

The program '[8784] dotnet.exe' has exited with code -2147450749 (0x80008083).

程序 [7352] iisexpress.exe已退出,代码为
0(0x0)。

The program '[7352] iisexpress.exe' has exited with code 0 (0x0).

我升级的project.json:

My upgraded project.json:

"dependencies": {
    "Microsoft.NETCore.App": {
      "version": "1.1.0",
      "type": "platform"
    },
    "Microsoft.ApplicationInsights.AspNetCore": "1.0.0",
    "Microsoft.AspNetCore.Mvc": "1.1.0",
    "Microsoft.AspNetCore.Routing": "1.1.0",
    "Microsoft.AspNetCore.Server.IISIntegration": "1.1.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.1.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0",
    "Microsoft.Extensions.Configuration.FileExtensions": "1.1.0",
    "Microsoft.Extensions.Configuration.Json": "1.1.0",
    "Microsoft.Extensions.Logging": "1.1.0",
    "Microsoft.Extensions.Logging.Console": "1.1.0",
    "Microsoft.Extensions.Logging.Debug": "1.1.0",
    "Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0",
    "Microsoft.IdentityModel.Tokens": "5.1.0",
    "Microsoft.AspNetCore.Authentication": "1.1.0",
    "Microsoft.AspNetCore.Authentication.JwtBearer": "1.1.0",
    "Microsoft.AspNetCore.Authentication.Cookies": "1.1.0",
    "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0",
    "Microsoft.EntityFrameworkCore": "1.1.0",
    "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
    "SapientGuardian.EntityFrameworkCore.MySql": "7.1.10",
    "AutoMapper": "5.1.1"
  },

  "tools": {
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview4-final"
  },

  "frameworks": {
    "netcoreapp1.1": {
      "imports": [
        "dotnet5.6",
        "portable-net45+win8"
      ]
    }
  },

也许我的project.json中缺少某些升级所需的内容?还是其中一个软件包不与v1.1合作?感谢您的帮助。

Maybe I am missing something in my project.json needed for the upgrade? Or one of the packages is not cooperating with v1.1? Any help is appreciated.

注意:当我改回1.0时,一切运行正常。

NOTE: When I change back to 1.0 everything runs fine.

推荐答案

借助HenkMollema的评论以及我们核心团队的朋友,我得以解决此问题。请参阅此 github问题以获取答案。

With the help of HenkMollema's comments and our friends at the Core team I was able to get this resolved. Please see this github issue for the answer.

关键在于按照参考1.1.0的建议更新所有软件包,或针对1.1.0对其进行适当更新的软件包版本。上面github链接中的表列出了在v1.1版本中更新的所有软件包的正确引用。

The key was updating all of the packages as suggested to reference 1.1.0, or their appropriate updated package version for 1.1.0. The table in the github link above lists the proper references for all packages that were updated in the v1.1 release.

我还安装了v1.1 SDK和运行时此处

I also installed the v1.1 SDK and Runtime available here.

这篇关于升级到v1.1后,ASP.NET Core将无法在IIS中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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