Failed to load viewstate. Happening only occasionally. Tough to recreate

后端 未结 9 1793
陌清茗
陌清茗 2020-12-09 18:05

Details of Error are given below. This error happens only occasionally / rarely / sometimes and there aren\'t any steps to reproduce it.

How can I know which Control

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 18:27

    Unfortunately there is no way to see which exactly is the guilty control that is not added correctly to the control hierarchy.

    There is!

    Disable "Just my code" in debugging settings. And catch all thrown exceptions (check 'thrown' for Common Language Runtime in the dialog opened by Ctrl-Alt-E).

    After the exception occurs, go to the nearest stack frame where the Control object is available and examine its ClientID and parents.

提交回复
热议问题