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

  • Home
  • SEARCH
  • 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 160903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:07:03+00:00 2026-05-11T11:07:03+00:00

This is a pretty vague question and getting it answered seems like a long

  • 0

This is a pretty vague question and getting it answered seems like a long shot, but I don’t know what else to do.

Ever since I made my website live every now and then it will just freeze. You click on a link and the browser will just site there looking like its trying to connect. It seems the freezing can last up to 2 minutes or so, then everything is just fine. Then a little while later, it will do the same thing.

I track all the exceptions that occur on my website in a log file.

I get these quite a bit ..

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding

And the stack trace shows it leading to some method that’s connecting to the database.

I’m assuming the freezing has to do with this timeout problem. My website is hosted on a shared server, and my database is on some other server with about a billion other databases as well.

But even being on a shared server, this freezing problem happens all the time. Its extremely annoying. And I can see this being a pretty catastrophic problem considering my site is ecommerce based and people are doing transactions on it. The last thing I want is the site freezing when my users hit the ‘Submit payment’ button, then it results in them hitting the submit payment button over and over again because the site froze, then there credit card gets charged about 10 extra times.

Does anyone have any suggestions on the best way to handle this?

  • 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. 2026-05-11T11:07:04+00:00Added an answer on May 11, 2026 at 11:07 am

    Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding

    That’s a Sql command timeout exception – it can be somewhat common if your database is under load. Make sure you’re disposing of SqlConnections and SqlCommands – though that’d usually result in a pool timeout exception (can’t retrieve a connection from the connection pool).

    Odds are, someone is running queries that are badly tuned or otherwise sucking resources. It may be your site, but since you’re on a shared db server, it could just as easily be someone else’s. It could also be blocking, or open transactions – since those would be on your database, that’d be a coding issue. You’ll probably need to get your hosting provider involved to track it down or move to a dedicated db server.

    You can decrease the CommandTimeout of your SqlCommands – I know that sounds somewhat counter-intuitive, but I often find that it’s better to fail early than try for 60 seconds throwing additional load on the server. If your .5 second query isn’t done in 5 seconds, odds are it won’t be done in 60 either.

    Alternatively, if you’re the patient type, you can increase the CommandTimeout – but there’s also a IIS timeout of 90 seconds that you’ll need to modify if you bump it up too much.

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

Sidebar

Related Questions

No related questions found

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.