InvalidOperationException when upgrading from v10 to v11.1
I have upgraded my .NET 6 umbraco 10 website to Umbraco 11.1. I changed the target framework to .NET 7 before upgrading which went fine.
Apart from changing some usings here and there, the application built just fine and I could go through with the update procedure and access the backoffice.
But when I try to access the site itself I get the following error:
Just adding <GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile> to the UmbracoProject.cs file resolved the issue - no NuGet install needed.
InvalidOperationException when upgrading from v10 to v11.1
I have upgraded my .NET 6 umbraco 10 website to Umbraco 11.1. I changed the target framework to .NET 7 before upgrading which went fine. Apart from changing some usings here and there, the application built just fine and I could go through with the update procedure and access the backoffice. But when I try to access the site itself I get the following error:
Just want to know if anyone else is experiencing the same issues?!
These are the only Nuget packages I have installed
I can make a workaround, which is adding the missing package as a Nuget package and adding the following to the project file:
Not perfect, but it does the job for now until there is a proper fix.
There's no proper fix for it yet. It was put on the backlog for .NET 7
https://github.com/dotnet/aspnetcore/issues/38892
Well that sucks... I have experienced that issue once before, but I was surprised to see it again going from .NET 6 to .NET 7.
I just had the same problem too.
Installing System.Security.Cryptography.Pkcs through nuget, and then adding this to my proj file worked
Came across the same error while upgrading a project to Umbraco 13 (.Net 8).
As per: https://stackoverflow.com/a/70741481/3841490
Just adding
<GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile>
to the UmbracoProject.cs file resolved the issue - no NuGet install needed.is working on a reply...