AppVeyor deploy.ps1 problem installing TopShelf service

mikeb's Avatar

mikeb

09 May, 2019 06:42 AM

Hey guys,

I've been fighting with this all day, and I'm hoping I'm just doing something wrong.
I have a deploy.ps1 that is installing a windows service, then starting it. Specifically it's a TopShelf service, so doing the usual MyService.exe install then MyService.exe start.

Problem is, it's throwing a System.ComponentModel.Win32Exception: The parameter is incorrect upon startup. If I install this manually in powershell it installs and runs fine. However when it's installed via the AppVeyor agent for some reason it does this and may be permissions related. I've tried changing the agent service to run as "Administrator" (not ideal but worth a shot) and it still does it. I am assuming this is related to ServiceController permissions best I can tell which is what TopShelf is calling into.

Any ideas?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

22 Aug, 2019 08:13 PM
21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 05:56 AM