1. #1
    Sencha User After2050's Avatar
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    64
    Vote Rating
    0
    After2050 is on a distinguished road

      0  

    Default Reg. Ext Direct MVC

    Reg. Ext Direct MVC


    Hi,

    I'm using Ext Direct API for communicating with my ASP.NET MVC server. There are situations where the request takes more time to complete. But, what I see is after a particular time the request is getting aborted and another request is firing from the client.

    How I can increase the time limit in web.config?

    In the below case.. can I able to specify the time for a single call,

    MyController.MyMethod(params, function(request, response){
    });

    Dnana | Trigent

  2. #2
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,657
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    you could configure Ext.data.Connection and timeout property.
    Anyway you should optimize server side as requests shouldn't take too much time.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  3. #3
    Sencha User After2050's Avatar
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    64
    Vote Rating
    0
    After2050 is on a distinguished road

      0  

    Default


    Hi Steffen,

    Thanks for your suggestion. I made changes to my server-side scripts to avoid timeout issues.
    This is my current configuration.

    <ext.direct
    providerName="Ext.app.REMOTING_API"
    assembly="WebAssembly"
    dateFormat="Iso"
    debug="true"
    />

    Ho I can specify the timeout property?

    Dnana | Trigent

  4. #4
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,657
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    hi,

    i have no idea for ASP. But have a look to Ext.direct.RemotingProvider, it has a timeout property.
    http://dev.sencha.com/deploy/ext-3.3...member=timeout
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  5. #5
    Sencha User After2050's Avatar
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    64
    Vote Rating
    0
    After2050 is on a distinguished road

      0  

    Default


    Finally I got the solution.

    Ext.app.REMOTING_API.maxRetries = 0; //setting the maximum no. of retries
    Ext.app.REMOTING_API.timeout = 1000000; //setting the timeout value

    Ext.Direct.addProvider(Ext.app.REMOTING_API);

    Thanks for this thread

Similar Threads

  1. Ext.Direct for ASP.NET MVC
    By elishnevsky in forum Ext.Direct
    Replies: 381
    Last Post: 5 Nov 2013, 1:35 PM
  2. Spring3 MVC Ext.Direct Router
    By MoShAn480 in forum Ext.Direct
    Replies: 4
    Last Post: 20 Feb 2010, 1:12 AM
  3. Ext.Direct.Mvc - destroy api
    By isit.gd in forum Ext.Direct
    Replies: 1
    Last Post: 25 Jan 2010, 4:19 PM
  4. Replies: 0
    Last Post: 23 Jul 2009, 3:01 PM
  5. Ext.Direct and MVC
    By Dave.Sanders in forum Ext.Direct
    Replies: 4
    Last Post: 24 Jun 2009, 5:57 AM

Thread Participants: 1

Tags for this Thread