C
C#16mo ago
Hercules

✅ What other prerequisites are necessary to run service worker as a service on a Windows Server?

I have developed a service worker using .NET 7, and it successfully runs when tested through dotnet build. However, when attempting to publish the code and run it as a Windows service in the background, I consistently encounter Error 1053. I am utilizing Selenium webdriver to extract data, and I have installed the latest drivers and Chrome on the server. Despite this, I continue to receive Error 1053 and require assistance in deploying the service. I am unsure of what I am missing or what mistake I may be making. Is it possible that the server is not recognizing the driver, resulting in a timeout during startup?
RUN dotnet add package Selenium.Support --version 4.8.1
RUN dotnet add package Azure.Storage.Blobs --version 12.15.1
RUN dotnet add package Microsoft.Azure.Functions.Extensions --version 1.1.0
RUN dotnet add package Microsoft.NET.Sdk.Functions --version 4.1.1
RUN dotnet add package Microsoft.VisualStudio.Azure.Containers.Tools.Targets --version 1.17.2
RUN dotnet add package System.Threading.AccessControl --version 7.0.1

Other installations
Latest stabel chromedriver - https://sites.google.com/chromium.org/driver/
Chrome web browser
RUN dotnet add package Selenium.Support --version 4.8.1
RUN dotnet add package Azure.Storage.Blobs --version 12.15.1
RUN dotnet add package Microsoft.Azure.Functions.Extensions --version 1.1.0
RUN dotnet add package Microsoft.NET.Sdk.Functions --version 4.1.1
RUN dotnet add package Microsoft.VisualStudio.Azure.Containers.Tools.Targets --version 1.17.2
RUN dotnet add package System.Threading.AccessControl --version 7.0.1

Other installations
Latest stabel chromedriver - https://sites.google.com/chromium.org/driver/
Chrome web browser
Code can be found here: https://pastebin.com/dAjhfK0i
Pastebin
using Azure.Storage.Blobs;using Screenshot_WorkerService.Interface;...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
0 Replies
No replies yetBe the first to reply to this messageJoin