I have tiny c# code that I compile as straight windows 64 exe and also as 64 Windows service.
The same code works locally on my machine as exe and service with no issues.
It worked in the past on another VM in hosting environment, both as exe and service.
I deployed both on Azure VM - "exe" works, but service fails on one of the function calls to PDF library component (not networking call). Both run under local account. I can't figure out what could be the problem with service configuration, provided that service and exe are compiled from the same code and have the same login credentials.
Project code is available here. If someone will be interested in reviewing the problem please first run "exe" build under your Admin account to create entry in the Events, under Application and Service Log section.