Base solution for your next web application
Open Closed

How to setup command timeout ? #607


User avatar
0
mrvithan created

I have try several method but not seem to work. Please help.


2 Answer(s)
  • User Avatar
    0
    mrvithan created

    Beside SQL command timeout, do i need to config ajax call timeout also ? i have a long query which might take 3 - 5 mins to finish.

    Please suggest.

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    You can write this to PreInitialize of your module:

    Configuration.UnitOfWork.Timeout = TimeSpan.FromSeconds(30);
    

    For ajax timeouts, you can use jQuery's or angular's global configuration, since they are not related to ABP (you can ask to Google).