Relative Content

Tag Archive for c#.netconsole

C# .net 8 console app works in one environment but not another

I have just upgraded a .net framework console app to .net 8. It works perfectly both in vs 2022, as well as on my local machine after publishing. However, when I copy the files over to our server (Windows Server 2016 Standard 64 bit) to run from there, the .exe flashes open the console and immediately closes it with nothing actually running. What could be the problem, or how can I find what the problem is? No actual error shows up anywhere.