Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 935431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:09:19+00:00 2026-05-15T21:09:19+00:00

We have written a custom windows service (VB.NET, .NET Framework 2.0) that takes a

  • 0

We have written a custom windows service (VB.NET, .NET Framework 2.0) that takes a while to start up, because it uploads sales.

Protected Overrides Sub OnStart(ByVal args() As String)
  -- upload sales here
End Sub

That fact that it takes a long time to start up is fine, but that generates a time-out error in Windows and another program starting up does not get added to the system tray.

We can delay the sales upload, but would rather have Windows ignore the fact that this service takes a long time to start and not generate an error. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:09:20+00:00Added an answer on May 15, 2026 at 9:09 pm

    Start the upload sales code on another thread, that’ll run the upload code in the background and let the service respond that its started and you wont get the timeout message

    eg

    Protected Overrides Sub OnStart(ByVal args() As String)
    
        Dim start as new ThreadStart(UploadSalesMethod)
        Dim t as new Thread(start)
        t.Start()
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario I have a windows service written in C# that performs some processing based
Say, you have a custom Windows service installed on a server. The service is
I have some custom programs I've written to do various maintenance/monitoring tasks that I
I have a C++ Win32 application that was written as a Windows GUI project,
I have developed a small WCF service which handles HTTP request. I want to
Is there a good way to get the process name that created a file
I have the following code in both a C# console app and a C#
I spent a long time learning how to customise WCF from the point of
stupid problem. I get those from a client connecting to a server. Sadly, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.