The same code is executed well on another machine, and it won't work on my side.
The specific situation is as follows: using the paging control made by anthem, clicking the page turning button cannot flip the page. It feels that the _ dopostback event is not executed. Later, the debugging traces and finds this error. this page was never registered with anthem. manager! That is, the information about the manager is not saved in the items page. This error should not occur. As long as the anthem control is introduced to the page, it will be registered. Later, I manually add register (this) to pageload) or throw this exception. however, the same code can be successfully executed elsewhere. at that time, I did not expect it to be a problem with IIS.
Today, I called another program and found that I used the self-built gridview control of Asp.net to flip pages. The page turning buttons were not reflected, which is too outrageous. in addition, some IIS sites may encounter server unavailability errors during browsing. then, no matter whether I restart IIS or use aspnet_regiis-R to fix it, it will not help. in this way, the suspect focus is on IIS.
As a result, I had to reinstall IIS and re-register ASPnet. The problem was finally solved.
It seems that there will be some inexplicable errors in the future. First, we will reinstall IIS, and the problems caused by IIS will be hard to find.
In addition, IIS sometimes requires the user name and password to have the permission to access the site. Although anonymous users already have the permission for the current folder, it is best to grant permissions to the network service and aps.net guests and Internet guests. Otherwise, the permissions may be insufficient. if this is not the case, you can delete the site and reconfigure the site to solve the problem.
It's almost suffering from IIS... but the problem has finally been solved for the moment. The specific cause is unknown...
By the way, the good news is that the support for Oprea has been released in anthem-1.5.2.
PS: It seems that you want to re-reference anthem. dll, and the code is put in SVN, it may also be a problem.