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.OptionsFactory
1.Create(String name)
at Microsoft.Extensions.Options.OptionsManager1.<>c__DisplayClass5_0.<Get>b__0() at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy
1.CreateValue()
at System.Lazy1.get_Value() at Microsoft.Extensions.Options.OptionsCache
1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsManager
1.Get(String name)
at Microsoft.Extensions.Options.OptionsManager1.get_Value() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer..ctor(IISNativeApplication nativeApplication, IHostApplicationLifetime applicationLifetime, IAuthenticationSchemeProvider authentication, IOptions
1 options, ILogger`1 logger)
--- End of inner exception stack trace ---
Please advise. Thank you!
4 Answer(s)
-
0
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?
-
0
Hello maliming. I used the .NET Core 3.1 SDK.
-
0
Does it work if you download a zero 8.1 demo project?
If the demo project works, please compare your project with its differences.
-
0
Okay thanks for the tip. Will give it a try. Thank you!