Questions tagged [spwindowsservice]
4 questions
3
votes
2 answers
How to use SPWindowsService
From what I understand from the sparse documentation on MSDN, the way to do long running jobs in SharePoint is to use a SPWindowsService. I would like an example on how to create a custom windows service to run in the context of a SharePoint farm.

kjv
- 11,047
- 34
- 101
- 140
2
votes
2 answers
Hosting ASP.NET Core application in Windows Service with Single Executable gives wrong working directory path always
I have hosted ASP.Net core 3.1 application in Windows Service. It works fine and I am able to navigate to pages.
Now i am trying to change deployment as single executable file from "Produce single file" option in Publish settings. after this I…

Jitendra
- 21
- 4
1
vote
1 answer
Service Starts, but The Program does not Run
We've created a new hosted service using .NET Core 3.1 and the WorkerService template.
We want to run this service as a "Windows Service".
If I run the program manually using a Powershell shell, it runs fine with no problems.
So I then added it as a…

onefootswill
- 3,707
- 6
- 47
- 101
-1
votes
1 answer
Where can I find a good description on how to use COM with Windows Services?
I'm looking to pass parameters into a Windows Service not only upon launch but while it's still running as well. I've heard the best way to do this would be through the COM but I have no idea where to even get started. Are there any good places you…

Sam Youtsey
- 884
- 2
- 12
- 33