user15840998
user15840998

Reputation: 21

I faced an error "Application '/LM/W3SVC/2/ROOT' with physical root '######' failed to load coreclr." after upgrading my site to DotNet 6

I have upgrade my site from DotNet Core 2.1 to DotNet 6. It seems to work fine for couple of days. Then it started to crash in random interval of time. I checked in the Event Log to find out the cause of this issue and I found the following error message. "Application '/LM/W3SVC/2/ROOT' with physical root 'C:\....' failed to load coreclr. Exception message: Managed server didn't initialize after 4****** ms."

It seems to be issue with ".Net Runtime" and "IIS AspNet Core Module V2".But I have not found the solution to stop from my site getting crashed.

I have changed the AspNet Hosting model from "Inprocess" to "OutOfProcess" too But it did not work. I also added the StartUptime but it did not work either.

Upvotes: 2

Views: 10274

Answers (1)

YurongDai
YurongDai

Reputation: 2430

500.37 - ANCM Failed to Start Within Startup Time Limit

This happens when there are many application pools on the same machine, Microsoft recommends to stagger the startup process of multiple applications.

Another solution is to increase the start up limit, I suggest you can try increasing startupTimeLimit and try again, element in web.config has an option < aspNetCore > (You can refer this documentation)

    <system.webServer>
      <aspNetCore xdt:Transform="SetAttributes(startupTimeLimit)" startupTimeLimit="400">
      </aspNetCore>
    </system.webServer>

Upvotes: 0

Related Questions