AnthonyGiretti / aspnetcore-multitenant-injectiondependency

Example of how to handle multinenant services and repositories in ASP.Net Core 2.2 WebAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error when trying to deploy this code as windows service.

ani00763 opened this issue · comments

Getting below error while trying to deploy the self contained x64 .Net 5.0 package as windows service.

System.BadImageFormatException: Could not load file or assembly 'C:\deploy\testapi\api-ms-win-core-console-l1-1-0.dll'. The module was expected to contain an assembly manifest.

It works fine if I remove the Assembly Load code. Is there a problem with Assembly.Load and .Net Core or .Net 5.0?