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 1012863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:00:37+00:00 2026-05-16T10:00:37+00:00

I am using C# to write a program that uses a web service from

  • 0

I am using C# to write a program that uses a web service from http://msrmaps.com, the problem is sometimes (seemingly at random) the site won’t work properly and will return a few different exceptions. Then on subsequent attempts to use the service I get the error over and over, then after a while (sometimes 30 minutes) the service starts working properly again. In order to avoid waiting for the service to work properly again, I usually just close my program and start it back up again. Usually that fixes the problem and I can continue to use the web service.

My question: Is it possible to restart my program within the program or better yet is there a way to somehow re-connect to the web service like the program does when I first run it?

  • 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-16T10:00:38+00:00Added an answer on May 16, 2026 at 10:00 am

    Warning: This is a bit of a hack, but it works.

    I’m assuming your application is unattended, so a UI change alerting the user to the need to shut down and restart is not an option.

    We had a similar situation where the simplest resolution to a problem was to shut down and restart my app. (We’ll call this “App A”).

    What I wound up doing was writing a second executable (We’ll call it “App B”) as a console app that did two things.

    1. It used the System.Diagnostics.Process to kill any instance App A.
    2. Use System.Diagnostics.Process to re-launch App A after all instances were killed.

    Then in App A, I had a try/catch around the offending code, and when the error I was looking for came up, it would call App B.

    This was the only way I could find of killing a program and relaunching it. If anyone has a better solution, PLEASE post it and I’ll change my hack to use a better solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 515k
  • Answers 515k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer technically it should be possible with something like sipdroid to… May 16, 2026 at 6:24 pm
  • Editorial Team
    Editorial Team added an answer If arrayFromXML is an instance variable you have to retain… May 16, 2026 at 6:24 pm
  • Editorial Team
    Editorial Team added an answer Use one of the many Set modules on CPAN. Judging… May 16, 2026 at 6:24 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm trying to write a program that uses sockets to connect with other instances
I am trying to write a program that uses a timer, duration, start time
I have a winform application that uses some referenced web services to get data.
I have to write a program that performs highly computationally intensive calculations. The program
As a pet project I want to build a program that translate from English
Let's assume I browse a specific web page that uses JavaScript to update its
Assume that i have written a program in C++ without using RTTI and run-time
I need to write a program that prints 100 stars on the screen (at
I want to program using Qt, but I don't want to use special compilers
I am writing a numerical program that should be somewhat fast, and is also

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.