ASP.NET Ajax Error: Sys.WebForms.PageRequestManagerParserErrorException

后端 未结 15 684
轻奢々
轻奢々 2020-12-05 18:20

My website has been giving me intermittent errors when trying to perform any Ajax activities. The message I get is

Sys.WebForms.PageRequestManagerP         


        
相关标签:
15条回答
  • 2020-12-05 18:41

    I solved this same problem by removing mistakenly-nested UpdatePanels.

    0 讨论(0)
  • 2020-12-05 18:43

    I finally solved my variant of this same problem. I was attempting to copy/move a selected value between 2 listboxes in a webform. In my case, I had to specifically call {listbox}.ClearSelection() prior performing the action the 2nd time around.

    So obviously this problem/error message can occur for a multitude of reasons.

    0 讨论(0)
  • 2020-12-05 18:45

    Change of the app pool FROM INTEGRATED to asp.net classic solved the problem for me.

    0 讨论(0)
  • 2020-12-05 18:46

    Update the ScriptMode to "Release"

    <asp:ScriptManager ID="ScriptManager" runat="server" ScriptMode="Release"></asp:ScriptManager>
    
    0 讨论(0)
  • 2020-12-05 18:47

    Probably there is an error occuring on post back. In this case, you can view the details about the error by adding a PostBackTrigger to your updatepanel and referencing the button which causes the problem:

        <asp:updatepanel ID="updatepanel1" runat="server">
            <Triggers>
                <asp:PostBackTrigger ControlID="button1" /> 
            </Triggers>
            <ContentTemplate>
    
            </ContentTemplate>
        </asp:updatepanel>
    
    0 讨论(0)
  • 2020-12-05 18:48

    I had this happen to me and none of the causes on the list in the answer applied. I didn't find the root of the problem until I disabled my AJAX altogether. Discovered that the code was saving an object to the ViewState that contained an unserializable object. I made the object serializable and it started working again.

    0 讨论(0)
提交回复
热议问题