Good morning, I am having the following problem, after changing an application from net3.1 to net6.0, I get the error that I leave below, locally the application works correctly, but when I publish it on the server, I have that error.
Net6.0 is installed on the server.
I'm not sure if it could be a problem in some dependency or how I can address it. Any ideas?
Thank you!
An error occurred while starting the application.
TypeLoadException: Could not load type 'Internal.Resources.WindowsRuntimeResourceManagerBase' from assembly 'System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
What I have tried:
I tried deleting some dependencies and updating others.
I leave the list of dependencies here:
Microsoft.EntityFrameworkCore 7.0.5
Microsoft.EntityFrameworkCore.SqlServer 7.0.5
Microsoft.IdentityModel.Clients.ActiveDirectory 5.3.0
Microsoft.Extensions.Configuration 7.0.0
Microsoft.Extensions.Configuration.Abstractions 7.0.0
AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1
Azure.Storage.Blobs 12.19.1
BuildBundlerMinifier 3.2.449
Microsoft.ApplicationInsights.AspNetCore 2.22.0-beta4
Microsoft.TypeScript.MSBuild 5.3.2
Microsoft.VisualStudio.Web.CodeGeneration.Design 8.0.0
NLog.Web.AspNetCore 5.3.4