Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Runtime error after upgrade to v8.1 #8393


User avatar
0
-bitman created

Hello AspNetZero Team,

My project was in v7.2 and I tried to upgrade to v8.1 but only to encounter this error.

Application '/LM/W3SVC/2/ROOT' with physical root 'C:\workspace\azure\aspnet-core\src\SprintTek.Web.Host' hit unexpected managed exception, exception code = '0xe0434352'. Last 4KB characters of captured stdout and stderr logs: Application startup exception: Castle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not instantiate Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer ---> System.Exception: Could not instantiate Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.AspNetCore.Hosting.WebHostBuilderIISExtensions.<>c__DisplayClass0_0.<UseIIS>b__2(IISServerOptions options) at Microsoft.Extensions.Options.ConfigureNamedOptions1.Configure(String name, TOptions options) at Microsoft.Extensions.Options.OptionsFactory1.Create(String name) at Microsoft.Extensions.Options.OptionsManager1.<>c__DisplayClass5_0.<Get>b__0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at System.Lazy1.get_Value() at Microsoft.Extensions.Options.OptionsCache1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsManager1.Get(String name) at Microsoft.Extensions.Options.OptionsManager1.get_Value() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer..ctor(IISNativeApplication nativeApplication, IHostApplicationLifetime applicationLifetime, IAuthenticationSchemeProvider authentication, IOptions1 options, ILogger`1 logger) --- End of inner exception stack trace ---

Please advise. Thank you!


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi @ramilcatalandomingo

    The zero 8.1 version is based on net core 3.1. Have you installed the SDK or runtime of net core 3.1?

  • User Avatar
    0
    -bitman created

    Hello maliming. I used the .NET Core 3.1 SDK.

  • User Avatar
    0
    maliming created
    Support Team

    Does it work if you download a zero 8.1 demo project?

    If the demo project works, please compare your project with its differences.

  • User Avatar
    0
    -bitman created

    Okay thanks for the tip. Will give it a try. Thank you!