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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:59:18+00:00 2026-06-06T16:59:18+00:00

I’ve had an ongoing issue with the following exception when calling SubmitChanges() on a

  • 0

I’ve had an ongoing issue with the following exception when calling SubmitChanges() on a data context:

“Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated.”

This is happening on an ASP.NET web application that is being used by 5-100 concurrent users. Note that increasing the timeout period for the site/database has not helped and the queries being run are very simple and fast. I’ve gone so far as to remove the timeout period altogether which causes the site to hang indefinitely when the error occurs.

Other aspects of this problem:

  • It’s intermittent and can’t be reproduced reliably
  • It only occurs in a couple of different methods, never any others
  • Increasing or removing the timeout period does not help
  • Rebooting the server and restarting the MSSQL database hasn’t helped

This seems like it might be a concurrency/deadlocking issue but I have no idea how to debug it or fix it. 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-06-06T16:59:19+00:00Added an answer on June 6, 2026 at 4:59 pm

    When the database operation is performed by the application and waiting for response of SubmitChanges try running the following query in Sqlserver

    **sp_who2**
    

    Have a look at Blkby column in the returned output.
    If you find one row with some value (This is SPID of the commands blocking your connection).

    Check the ProgramName in that column to find some more info.

    If you find the SPID that is blocking as described then run the following command to find the last query executed on that SPID.
    say Blkby has value of 59

    **dbcc inputbuffer(59)**
    

    This will give the query blocking your application query.

    This is one way to troubleshoot.

    Sometimes Timeout occurs due to default valued parameters in stored procedures causing parameter sniffing.

    in that case you can try using the line as the first line in procedures used

    SET ARITHABORT ON

    Alter the procedure and try the database operation again.

    If works you may remove this line afterwards and then alter procedure again.

    Try this if it works for you.

    I found a similar question here

    Also read more information about query running slow in Web app and instantly in SSMS here

    Stored procedure slow when called from web, fast from Management Studio

    Hope it helps.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to construct a data frame in an Rcpp function, but when I
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I used javascript for loading a picture on my website depending on which small
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites 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.