Giorgos Betsos
Giorgos Betsos

Reputation: 72185

Prevent VS debugger from time out

I have to debug an asp.net page that takes several minutes to execute. The problem is that the Visual Studio internal dev server debugger (I am currently using VS2012) times out before the page execution finishes.

Is there any way to fix this problem? Please note that I do not want to get VStudio to attach to IIS. I just want to know if there is a way to configure the internal Web Development Server.

Thanx in advance!

(Thanks SLaks for the edit)

Upvotes: 2

Views: 79

Answers (1)

Ken Brittain
Ken Brittain

Reputation: 2265

My cheap, dirty answer would be to send data back to the page during the operation. This could serve to keep the connection alive as you appear to be timing out at the browser level.

To properly handle the issue I would break up the operation into multiple steps:

  1. MyService.BeginOperation()
  2. MyService.UpdateOperation()
  3. MyService.EndOperation()

Where the client will call those methods asynchronously to determine application state.

Upvotes: 1

Related Questions