Page_ Ajax Load Complete BUG on Ajax Request

  1. #1

    Page_ Ajax Load Complete BUG on Ajax Request

    Hi guys,

    Often, it occurs an internal exception when some ajax events takes place.

    Tipo de suceso: Advertencia
    Origen del suceso: ASP.NET 2.0.50727.0
    Categoría del suceso: Evento Web
    Id. suceso: 1309
    Fecha: 05/06/2009
    Hora: 14:07:25
    Usuario: No disponible
    Equipo:
    Descripción:
    Código de evento: 3005
    Mensaje de evento: Excepción no controlada.
    Tiempo de evento: 05/06/2009 14:07:25
    Tiempo de evento (UTC): 05/06/2009 12:07:25
    Id. de evento: c413c5821dd7483aaf68188d30253278
    Secuencia de evento: 368
    Ocurrencia de evento: 3
    Código de detalles de evento: 0

    Información de aplicación:
    Dominio de aplicación: /LM/W3SVC/1359336336/Root/0.3.1-3-128886580538787595
    Nivel de confianza: Full
    Ruta de acceso virtual de la aplicación: /0.3.1
    Ruta de acceso de la aplicación: E:\IntegrationContinuous\Web\0.3.1\
    Nombre del equipo: ACRISIIS01

    Información de proceso:
    Id. de proceso: 2116
    Nombre de proceso: w3wp.exe
    Nombre de cuenta: NT AUTHORITY\Servicio de red

    Información de la excepción:
    Tipo de excepción: NullReferenceException
    Mensaje de la excepción: Referencia a objeto no establecida como instancia de un objeto.

    Información de solicitud:
    Dirección URL solicitada:
    Ruta de acceso de solicitud: /0.99.1/Web/Hello/Manage.aspx
    Dirección de host de usuario: 212.163.158.86
    Usuario:
    Se autenticó: False
    Tipo de autenticación:
    Nombre de la cuenta de subproceso: NT AUTHORITY\Servicio de red

    Información de subproceso:
    Id. de subproceso: 6
    Nombre de la cuenta de subproceso: NT AUTHORITY\Servicio de red
    Está representando: False
    Seguimiento de la pila: en Coolite.Ext.Web.ScriptManager.Page_AjaxLoadComplet e(Object sender, EventArgs e)
    en System.EventHandler.Invoke(Object sender, EventArgs e)
    en System.Web.UI.Page.OnLoadComplete(EventArgs e)
    en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


    Detalles de evento personalizado:

    Para obtener más información, vea el Centro de ayuda y soporte técnico en http://go.microsoft.com/fwlink/events.asp.

  2. #2

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    Yes, I have been getting this too. Any ideas, anyone?

    Here is an example stack trace I see:

    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Coolite.Ext.Web.ScriptManager.Page_AjaxLoadComplete(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Page.OnLoadComplete(EventArgs e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       --- End of inner exception stack trace ---
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.administration_adminpim_adminpim_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sonetto\249e02b1\26aab14e\App_Web_wctphpwe.0.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    I get this when I set up a button in the following way:

    <ext:Button ID="btnReloadPagePartStore" runat="server" Enabled="True" Text="Reload">
        <AjaxEvents>
            <Click 
                Success="My.example.of.onSuccess(result);"
                Failure="My.example.onFail(result);"
                Url="AdminPim.aspx/ReloadPartStore"
                Type="Load" 
                Method="POST" 
                CleanRequest="true">
            </Click>
        </AjaxEvents>
    </ext:Button>
    The web method (in an ASPX, not ASMX file, admittedly) has this:

            [WebMethod]
            public AjaxResponse ReloadPartStore(object sender, EventArgs e)
            {
                var response = new AjaxResponse();
                // do stuff
                return response;
            }
    The code never gets into the above webmethod
  3. #3

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    Hi,

    Any chance to see test sample which reproduces that exception?
    Vladimir Shcheglov
    Sr. Developer
  4. #4

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    Hm... in my particular case, I found that removing the CleanRequest="true" attribute from the Click handler solved the problem.

    Maybe something to do with requesting the WebMethod from an ASPX page rather than ASMX page???
  5. #5

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    Hi,

    CleanRequest="true" should use only in case:


    If set custom url which pointed to the WebService or HttpHandler




    Also CleanRequest="true" by default for ASP.NET MVC
    Vladimir Shcheglov
    Sr. Developer
  6. #6

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    Thanks for the clarification.
  7. #7

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    Ok guys,

    But for my issue ;) do you know how to fix it ?
  8. #8

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    Hi jeybonnet,

    To fix your problem we need code from you which reproduces the problem
    Vladimir Shcheglov
    Sr. Developer
  9. #9

    RE: Page_ Ajax Load Complete BUG on Ajax Request

    I can not send you code, error occurs randomly.

    Do you ever have had this issue ?

Similar Threads

  1. Operation Requires an Ajax Request
    By dan182 in forum 1.x Help
    Replies: 1
    Last Post: Feb 23, 2011, 12:58 PM
  2. This operation requires an Ajax request
    By dan182 in forum 1.x Help
    Replies: 0
    Last Post: Feb 03, 2011, 10:34 AM
  3. Non JSON ajax request
    By craig2005 in forum 1.x Help
    Replies: 0
    Last Post: Dec 31, 2010, 6:08 PM
  4. [CLOSED] GridPanel: row color after Ajax.request
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 29, 2010, 4:28 PM
  5. Coolite Ajax Request Failure (ASP.NET MVC)
    By AlphonsoT in forum 1.x Help
    Replies: 0
    Last Post: Jul 16, 2009, 8:10 PM

Posting Permissions