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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:18:38+00:00 2026-05-18T04:18:38+00:00

is there a way in c# to be able to ping a url every

  • 0

is there a way in c# to be able to ping a url every 15 minutes and get a response back from the server?

i want to try to see if .net can be used to build a simple tool to have asp.net websites invoke a re-build so that the first user doesn’t incur the load penalty when the application is started.

or if anyone has an alternative method of accomplishing the same goal…
thoughts? tips? 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-18T04:18:38+00:00Added an answer on May 18, 2026 at 4:18 am

    Typically the person pushing a release should visit after they’ve uploaded the site just for test sake (make sure nothing bombed out). But if you’re looking for a programmatic approach, WebClient may be helpful…

    using (WebClient client = new WebClient())
    {
      client.DownloadString("http://wwww.sitename.com/");
    }
    

    Then make it an exe and use the windows scheduler to run it. Could even put this in a WinService and report status to log files.

    Update:

    It looks like VS2012 now opens the page after a publish, making those pushing the site be the first-request.

    Also, if you find you’re having to visit it that frequently (every 15 minutes as mentioned in question) you may want to look in to reconfiguring the IIS/AppPool and change the cycle time to something longer. IIS natively conserves resources that are not used, and so if a site hasn’t been queried in a while it will actually release the memory for another application to use.

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

Sidebar

Related Questions

Is there a way to be able to click on a segment on a
Is there a way to utilise the GCC compiler whilst still being able to
Is there any way for the main form to be able to intercept events
Is there way in next piece of code to only get the first record?
I'm just wondering if there is a way to have a server push information
Is there any way of getting a key value from an NSDictionary based on
Is there a way I can see my commit history for a given time
Is there a way to test if a collection is already initialized? try-catch only?
Is there way to optionally compile dependency from source (svn) instead of using the
Is there a way for me to be able to grab a PDF and

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.