ASP.NET Ajax Error: Sys.WebForms.PageRequestManagerParserErrorException

后端 未结 15 733
轻奢々
轻奢々 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:48

    This may be a little hacky, but it solved the issue for me. I didn't have any of the common reasons for the error, so I just put in this band-aid in the page load:

    if (Session.SessionID == "")
    {
        Page.Session.Add("SessionID", Session.SessionID);
    }
    

提交回复
热议问题