This site and others using 11.2 run locally without any issues. However when I deploy to my web host (MyAsp.Net) all of the 11.2 apps throw the following error:
Unhandled exception. System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.DataProtection.Infrastructure.IApplicationDiscriminator' while attempting to activate 'Umbraco.Cms.Web.Common.Logging.Enrichers.ApplicationIdEnricher'.
the stack trace leads to Program.cs:line 6, which is:
public static void Main(string[] args)
=> CreateHostBuilder(args)
.Build()
.Run();
The Program.cs file is unmodified.
Deploy/Publish settings are:
Configuration: Release
Target Framework: net7.0
Deployment Mode: Framework-dependent
Target Runtime: Portable
I have also tried using:
Deployment Mode: Self-Contained
Target Runtime: win-x86 and win-x64
All combinations produce the same error.
I have also installed Microsoft.AspNetCore.DataProtection (7.04, via NuGet) for the Data Protection DLLs. Still throws that error.
Thoughts, ideas, suggestions? Web search, as of yet, doesn't turn up anything specific to the IApplicationDiscriminator error or anything helpful.
Umbraco 11.2 throws "HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure" Error
This site and others using 11.2 run locally without any issues. However when I deploy to my web host (MyAsp.Net) all of the 11.2 apps throw the following error:
Unhandled exception. System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.DataProtection.Infrastructure.IApplicationDiscriminator' while attempting to activate 'Umbraco.Cms.Web.Common.Logging.Enrichers.ApplicationIdEnricher'.
the stack trace leads to Program.cs:line 6, which is:
The Program.cs file is unmodified.
Deploy/Publish settings are:
I have also tried using:
All combinations produce the same error.
I have also installed Microsoft.AspNetCore.DataProtection (7.04, via NuGet) for the Data Protection DLLs. Still throws that error.
Thoughts, ideas, suggestions? Web search, as of yet, doesn't turn up anything specific to the IApplicationDiscriminator error or anything helpful.
Ok... so... I ended up deleting everything in the site folder on the web server and reuploading all of the files. All is running now.
It takes a while to backup and restore a large media folder.
Hi,
I have the same issue . I'm deploying the app to azure. I still have the same problem since 3 days. I appreciate any help please. thanks
is working on a reply...