繁体   English   中英

将 .NET 内核从 2.2 迁移到 3.1

[英]Migrate .NET Core from 2.2 to 3.1

I was trying to migrate my .net core web app from 2.2 to 3.1 I've changed the target framework from.csproj file and then installed all necessary dependencies from Nuget Package Manager And When I Ran the Project I got this Message

**

500.37 ANCM在启动时间限制内启动失败

**

请我需要帮助。 重要提示:我已经更改了我的 Startup.cs 并按照 Microsoft 官方网站中的说明进行了一些更改,但仍然相同。

1.关闭系统上运行的应用程序

2.原来是因为访问需要很长时间

3.Webconfig升级startupTimeLimit https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524792(v=vs.90)

我们通过将 startupTimeLimit 增加到 300 来解决此解决方案

  <?xml version="1.0"?>
    <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
      <location>
        <system.webServer>
          <aspNetCore xdt:Transform="SetAttributes(startupTimeLimit)" startupTimeLimit="300">
          </aspNetCore>
        </system.webServer>
      </location>
    </configuration>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM