I started developping a little console application. The result is ok.
Then I changed the application type to a (windows) service.
With the command
When I double click this EXE, the code runs in a console window and works as expected without errors.
With
Now the unexpected: When I start the service, the application works BUT the conversion of numbers is wrong: Should be "44.44", but is converted with comma "44,44"
What is the reason and how to solve this problem?
Thanks in advance for any help.
Then I changed the application type to a (windows) service.
With the command
dotnet publish -o .\publish -c Release -p:PublishSingleFile=true
I let create a single exe file.When I double click this EXE, the code runs in a console window and works as expected without errors.
With
sc create "SampleService" binPath="C:\\path\\to\\publish\\SampleService.exe"
I let create a windows service.Now the unexpected: When I start the service, the application works BUT the conversion of numbers is wrong: Should be "44.44", but is converted with comma "44,44"
What is the reason and how to solve this problem?
Thanks in advance for any help.