Sys.WebForms Error on Calendar w/in Update Panel

Last post 07-26-2008 4:38 AM by asterix2008. 20 replies.

Sort Posts:

  • Sys.WebForms Error on Calendar w/in Update Panel

    11-23-2006, 4:47 AM
    • Loading...
    • renelou
    • Joined on 05-22-2006, 2:00 AM
    • Philippines
    • Posts 36
    Hi,

    I'm getting this error "Sys.Webforms.PageRequestManagerServerErrorException: An Unknown error occured while processing the request on the server. The status code returned from the server was: 500".

    I cannot replicate the scenario since this one only appears in an exisiting ajax application I'm developing. I tried making a demo but the demo works. I will then now only ask for guidance on how to solve this problem, probably a better explanation for error 500 so I can work out what is wrong with this application. This application is somewhat getting a little complex so there could be several potential problems but I would try to enumerate here what I'm trying to do and what are my current observations. Any advice would help.

    Let me begin,

    Basically, I'm trying to put a calendar inside an update panel. My original design is putting that update panel in a modal form but I don't think the modal form is the issue since I tried to put it in a plain page and yet the error persist.

    The application contains a master page and several content pages. I am calling this one on the content page. (I tried to put it on a separate page but still no luck with the error)

    I tried placing a script manager proxy on the content page, still nothing.

    I tried disabling tracing and removing all response.writes and server.execute, still nothing.

    I disabled the "Enable Partial Rendering" on the script manager and now it doesn't display the error but that defeats the purpose of what I'm trying to do.

    This error only occurs with a calendar, I tried placing a button inside the update panel that changes a textbox text. It works. But when the calendar tries to change the text, it doesn't work. (I haven't tested other controls yet)

    I had other controls inside an update panel, so far the only other control that is bugging me other thant this is the GridView control. Is this related? My GridView controls don't act right when inside an update panel. (works sometimes, sometimes doesn't, but no error is displayed)

    I'm using stylesheets heavily.

    I hope someone could explain the possible causes of error 500 so I could get to the bottom of this. Maybe I'm missing something but the other controls are working except the calendar and sometimes the gridview. Maybe someone could tell me how to correctly use Update Panels in Beta 2. Thanks for any insight.

    Regards,


     
  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    11-24-2006, 2:17 AM
    • Loading...
    • renelou
    • Joined on 05-22-2006, 2:00 AM
    • Philippines
    • Posts 36
    bump...


  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    11-29-2006, 8:06 PM
    • Loading...
    • renelou
    • Joined on 05-22-2006, 2:00 AM
    • Philippines
    • Posts 36

    Update: I tried to use Drop Down controls with autopostback set to true and it returns the same error. Command Buttons seem to work without any problems inside an update panel.

  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    11-29-2006, 8:22 PM
    Answer
    • Loading...
    • renelou
    • Joined on 05-22-2006, 2:00 AM
    • Philippines
    • Posts 36

    I got the problem solved. It seems one of 3rd party dll's I am using is causing the problem. I should have guessed it sooner. It's a theme switcher dll. Well, maybe I could live with it :).

    I guess this is the end of this thread.

  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    01-03-2007, 7:05 AM
    • Loading...
    • mzeeshaan
    • Joined on 01-03-2007, 11:56 AM
    • Posts 3

    Mr. renelou

    I m getting the same error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500".

    I m tring to take input from User [add/update record] & this error occurs when this substring "&#" exists in input string.

    I have script manager in Master Page.

  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    01-23-2007, 2:12 AM

    Hi,

     I am using Ajax RC 1.0

    Initially my application was simple ASP.NET 2.0 application and later on client decided for implementing AJAX.

    My form is containg datagridview inside UpdatePanel and one textbox also. datagridview is having all rows editable. I have master page implemented.

    I am updating records on lost focus of any text box(inside datagridview  and outside also) 

    Problem is that I am able to run my application locally without any problem. But when I am publishing my website on server it is giving me following error:

    Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

    I have uploaded following DLL's on server: AjaxControlToolkit.dll, AJAXExtensionsToolbox.dll, Microsoft.Web.Extensions.Design.dll and Microsoft.Web.Extensions.dll

    Please let me know the solution of this problem if you have any idea

  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    01-25-2007, 9:44 PM
    • Loading...
    • renelou
    • Joined on 05-22-2006, 2:00 AM
    • Philippines
    • Posts 36
    Try intalling AJAX on the server itself, not just by copying dll's
  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    02-23-2007, 10:23 AM
    • Loading...
    • lea2008
    • Joined on 02-23-2007, 3:13 PM
    • Posts 3
     changing UpdateMode for the updatepanel from "Conditional" to "Always" solved my problem
  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    02-26-2007, 2:11 PM
    • Loading...
    • RTernier
    • Joined on 06-05-2003, 1:40 AM
    • British Columbia, Canada
    • Posts 1,033

    If I have XML in a textbox and do an Asynchronous postback - I will get this error. I'm not keen to set the Mode of the updatepanel to Always, that's more data than I want to send back...

    The Killer Ninja Coding Monkeys thank those that mark helpful posts as answers.

    My Site | My Examples | My Blog
  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    02-27-2007, 6:36 AM
    • Loading...
    • RNUK
    • Joined on 01-11-2007, 2:24 PM
    • Posts 52

    I also have this problem, but, I am using a DetailsView to insert records into a DB. I am trying to do it using ASYNC postback. Works fine locally. As soon as I upload it, the DetailsView displays in the UpdatePanel fine but when I hit the insert link it hangs for a few seconds then errors?

    I have taken Partial Rendering off and also set the Update Mode to Always. .net 2 and the AJAX 1 release is installed on the server and I only use the AjaxControls DLL. But still no joy

    Has anyone got and answer to what appears to be a common problem?

     

  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    02-28-2007, 1:07 AM
    • Loading...
    • eraza
    • Joined on 02-20-2006, 2:34 PM
    • Posts 95

    ASP.NET 2.0 ... VB.NET ... AJAX 1.0... the whole thing is an itty bitty usercontrol that implements the IWebPart interface.

    I started getting the same error, without really understanding what happened. The weird thing is that I thought I picked the most benign and insignifigant place to put an update panel. I also get these errors in the event log:

    >EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 system.web.services, P5 2.0.0.0, P6 4333af0f, P7 273, P8 36b, P9 ybv1uwyoq5jwn2acoifmkgc11cxoj3gf, P10 NIL.

    And this wonderful one:

    An unhandled exception ('System.Web.Services.Protocols.SoapException') occurred in w3wp.exe [2120]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on. Check the documentation index for 'Just-in-time debugging, errors' for more information.

    Here's my amazingly complex source code:

     

    1    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
    2    <ContentTemplate>
    3    <table style="width:100%">
    4        <tr>
    5            <td>Have you met <asp:HyperLink runat="server" ID="hlDisplayName" CssClass="link"></asp:HyperLink>? 
    6            <asp:Label runat="server" ID="lblBrief"></asp:Label>
    7            </td>
    8        </tr>
    9        <tr>
    10           <td>
    11           <br />
    12           <div style="text-align:center;">
    13           <asp:HyperLink runat="server" ID="hlEmployee">
    14           <asp:Image runat="server" ID="iEp" BorderWidth="0" />
    15           </asp:HyperLink>
    16           </div>
    17           </td>
    18       </tr>
    19   </table>
    20   </ContentTemplate>
    21   <Triggers>
    22       <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
    23   </Triggers>
    24   </asp:UpdatePanel>
    25   <asp:Timer ID="Timer1" Interval="10000" runat="server">
    26   </asp:Timer>
    

    Basically this displays a new employee, and some information about them. It updates every ten seconds, and looked pretty cool. Right up until the point that I started getting that error. I have to do an iisreset, and then it works for another few minutes, and then it barfs out on me again.

    I'm wondering... maybe.. if it has to do with the fact that it's in debug mode? I'm really not sure what's causing this error, and I'm pretty damn happy that I didn't implement this in production yet. I mean throwing a fatal exception because of AJAX? That's just plain crazy.

    Filed under: , ,
  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    02-28-2007, 1:14 AM
    • Loading...
    • Steve Marx
    • Joined on 05-26-2006, 8:35 PM
    • Microsoft
    • Posts 643

    eraza, what happens if you remove the UpdatePanel?  Do you still get the error?

    "SoapException" doesn't sound like it's related to AJAX, since we don't use SOAP anywhere.  Do you use a web service somewhere in your code?

    Steve Marx | ASP.NET AJAX Evangelist | Microsoft Corporation
  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    03-03-2007, 3:37 PM

    >>>>> I m getting the same error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500". I m tring to take input from User [add/update record] & this error occurs when this substring "&#" exists in input string. >>>>>> mzeeshaan

    mzeeshaan

    I got the same error as you but i tried setting validateRequest="false" inside <pages> to get it done.

  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    03-06-2007, 5:17 PM
    • Loading...
    • EdwardTWood
    • Joined on 06-29-2006, 2:28 PM
    • Posts 1
    I was getting the same error message and got things working by turning off Request Validation for the page (ValidateRequest="false").  Not sure why it worked but making that change was in response to another issue I had with some of the data on my form.
  • Re: Sys.WebForms Error on Calendar w/in Update Panel

    09-12-2007, 12:06 PM
    • Loading...
    • haksin
    • Joined on 07-19-2007, 4:00 PM
    • Posts 1

    I am using master page and ther is no page attribute there , how i can set ValidataRequest=False.Should I do it on every page ???

Page 1 of 2 (21 items) 1 2 Next >