question

YuSiHe-8287 avatar image
0 Votes"
YuSiHe-8287 asked ·

Service and Executable behave differently on Azure VM

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

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)




· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you. I thought I added my question under "Azure Virtual Machines" product, listed in right-hand pane. Did I misplace it?

0 Votes 0 ·