Details. Project is running on windows 11. Running from Visual Studio 2022, everything working. Using Microsoft Installer project to deploy on same machine give me the error in the title.
In project file, targeted framework is:
net8.0-windows7.0
Here is a pic of project properties:
I followed all recommended items including adding Window Compatibility, downgrading EventLog and Hosting to 6.0.0.0, etc nothing seems to work. Also tried running the dll via dotnet with same problem.
Added Microsoft.Extensions.Logging.EventLog nuget package and changed configuration to use this. Nothing is working