Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server."

前端 未结 27 2615
遇见更好的自我
遇见更好的自我 2020-12-13 18:03

I have couple of update panels and jquery tabs on page. And also I am loading couple user controls on update panels. After user waited for couple of minutes (not checked the

27条回答
  •  悲&欢浪女
    2020-12-13 18:24

    @JS5 , I also faced the same issue as you: ImageButton causing exceptions inside UpdatePanel only on production server and IE. After some research I found this:

    There is an issue with ImageButtons and UpdatePanels. The update to .NET 4.5 is fixed there. It has something to do with Microsoft changed the x,y axis of a button click from Int to Double so you can tell where on the button you clicked and it's throwing a conversion error.

    Source

    I'm using NetFramework 2.0 and IIS 6, so, the suggested solution was to downgrade IE compatibility adding a meta tag:

    
    

    I've done this via Page_Load method only on the page I needed to:

    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim tag As HtmlMeta = New HtmlMeta()
    
        tag.HttpEquiv = "X-UA-Compatible"
        tag.Content = "IE=9"
    
        Header.Controls.Add(tag)
    End Sub
    

    Hope this helps someone.

提交回复
热议问题