Service and Executable behave differently on Azure VM

YuSiHe 1 Reputation point
2020-04-16T15:32:27.063+00:00

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.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,127 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-04-16T15:46:51.52+00:00

    QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=csharpgeneral

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=windowsgeneraldevelopmentissues

    (please don't forget to mark helpful replies as answer)