Getting error when trying to deploy this code as windows service.
ani00763 opened this issue · 0 comments
ani00763 commented
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?