0
votes

I've created a command in the Sitecore Editor that automatically builds out up to 25 items at a time. The problem that I'm experiencing is that the operation just "hangs" and does not complete. I don't think it's an error because I've added error handling and logging.

I'm getting the following error message "The operation could not be completed. Your session may have been lost due to a time-out or a server failure. Try again."

How can I increase the "time-out" duration (if this is a setting somewhere) - or is there another solution to this problem?

1
Please provide sample code, even if its partially redacted. Is it an "event handler" or a "command template"?Mark Ursino
Is this now the original version of your more recent question? stackoverflow.com/questions/8913860/…Mark Ursino

1 Answers

0
votes

Long running operations will time out eventually depending on your IIS settings, usually after 20 mins. Instead, you should run your commands as a scheduled task, as they run in the background, with no waiting for the IIS request.

However, it seemes strange that inserting 25 items is such a long operation that the browser times out. You might have another issue in your code.