Value cannot be null. Parameter name: exception

7 posts, 1 answers
  1. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 19 Jun 2009 Link to this post

    Hi:
    I was forcing an error (divide by zero).  My timestamp on that error is 2009-06-19 09:53:04.248.  I get another error immediately following at timestamp of 2009-06-19 09:53:04.279. 
    Debugging in VS, I get an alert saying: Microsoft JScript runtime error: System.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.  This error seems to yield the following stack Trace:
       at System.Web.UI.AsyncPostBackErrorEventArgs..ctor(Exception exception) 
       at System.Web.UI.PageRequestManager.OnPageError(Object sender, EventArgs e) 
       at System.EventHandler.Invoke(Object sender, EventArgs e) 
       at System.Web.UI.TemplateControl.OnError(EventArgs e) 
       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.purchasing_po_aspx.ProcessRequest(HttpContext context) 
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
     Exception:  Value cannot be null. 
    Parameter name: exception Trace:     at System.Web.UI.AsyncPostBackErrorEventArgs..ctor(Exception exception) 
       at System.Web.UI.PageRequestManager.OnPageError(Object sender, EventArgs e) 
       at System.EventHandler.Invoke(Object sender, EventArgs e) 
       at System.Web.UI.TemplateControl.OnError(EventArgs e) 
       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.purchasing_po_aspx.ProcessRequest(HttpContext context) 
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
     

    How do I stop getting the JS exception?

    Phil



  2. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 19 Jun 2009 Link to this post

    Hi Phil,

    The javascript error is a result of the server error exception. I suggest that you review this help article for more information on error handling with RadAjax.

    I hope this helps.

    Greetings,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 19 Jun 2009 Link to this post

    Thanks lana, that is what I was guessing from other situations.
    Phil
  5. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 18 Sep 2011 Link to this post

    Hello,

    I'm getting the same error. It is caught in the HttpApplication.Error in my case. 
    It is generated by a RadGrid that is in a ajaxed usercontrol that is dynamicly loaded. All works well, but when I group on a column and than filter, this error occoures, without the grouping it works fine.
    Datasource is OpenAcces / Linq, a .Net 4 app.

    Erik
  6. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 12 Oct 2011 Link to this post

    You will have more luck on getting answered, if you post your own thread.
  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 13 Oct 2011 Link to this post

    Hello Erik,

    Does the same issue with the grouping occur in case the grid is added directly on a page? And are recreating the dynamically loaded user control on postback as described here?

    Greetings,
    Iana Tsolova
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  8. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 10 Dec 2011 Link to this post

    Hi Guys,

    Just a short experience here:
    I got this error again today. The problem was that there was a situation where dynamically loaded controls had double ID's. Avoid that when ajaxing! (avoid it anyway... :-))

    Erik
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017