'Asp. _ default_aspx.frameworkinitialize () ': no suitable method found to override
This is a prompt error.
Cause of error: make some adjustments after upgrading to 2.0beta2
In your ASPX page:
Old:<% @ Page Language = "C #"Compilewith= "Default. aspx. cs"Classname= "Default_aspx" %>
New:<% @ Page Language = "C #"Codefile= "Default. aspx. cs"Inherits= "Default_aspx" %>
In your Aspx. Cs source file:
Old:Public partial class default_aspx
New:Public partial class default_aspx: Page
This is the source text:
Http://www.hanselman.com/blog/UpdatingFromEarlyASPNETBetaBuildsToBeta2.aspx
However, it was later found that this error also occurred in ascx.
After comparison, it is found that the inherits mark on the page is incorrect.
For example:<% @ Control Language = "C #" autoeventwireup = "true" codefile = "tagui. ascx. cs" inherits = "tagui" %>
If the class name in tagui. ascx. CS is not tagui, this error is reported.