System.InvalidOperationException: Stack empty

前端 未结 11 1956
情深已故
情深已故 2020-12-09 03:09

Once running ASP.NET 4.x application built in Visual Studio 2013 I am getting the below exception.

I have tried to disable the PageInspector by removing page inspect

11条回答
  •  天涯浪人
    2020-12-09 03:43

    I have found the problem. There was changed way how to generate IDs of controls in GridView from default to

    ClientIDMode="Predictable" ClientIDRowSuffix="ID"
    

    Which resulted in the exception. Not sure why the real exception was hidden by PageInspector stack empty. Just reverting the change to original resolved the issue.

    Now the exception is different (but once GridView settings is back to original this disapper too)

    System.ArgumentException: An entry with the same key already exists.
    

提交回复
热议问题