First time here? Check out the site's "greatest hits" or read a post from the archives. Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS or e-mail. Thanks for visiting!
« VSVARS32.BAT missing from .NET Beta 2? | Main | KB 810886 The network BIOS command limit... »

If you're upgrading some mid-BETA or CTP ASP.NET 2.0 code and you get some cryptic messages like

  • c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\chapter 10 - 8 - csharp\3e344bac\60be3ec8\-sngkrtn.0.cs(265): error CS0115: 'ASP._Default_aspx.FrameworkInitialize()': no suitable method found to override
  • 'ASP._Default_aspx.FrameworkInitialize()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\chapter 10 - 8 - csharp\3e344bac\60be3ec8\-sngkrtn.0.cs 265 
  • 'ASP._Default_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\chapter 10 - 8 - csharp\3e344bac\60be3ec8\-sngkrtn.0.cs 272 

You'll need to make a few changes. First, you probably already updated your ASPX Markup.

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

No free derivation any more, you have to explictly derive from a class that ulitmately derives from System.Web.UI.Page. It is that derivation that will get ride of the override compiler errors seen above. This who post also applies to pages written in VB.

Tracked by:
"Scott Hanselman on Updating from early ASP.NET Beta builds to Beta 2" (Jim Mina... [Trackback]
"ASP.NET 2.0 Beta 1 to Beta 2" (Rob Zelt: .Net Ramblings...) [Trackback]


Friday, April 22, 2005 4:21:19 AM (Pacific Standard Time, UTC-08:00)
Thanks Scott, I've been wrestling with this for a couple of hours this morning.
Tuesday, September 06, 2005 6:49:01 AM (Pacific Standard Time, UTC-08:00)

Thanks Scott - still wrestling but at least I've a pointer to the right direction :-)
Comments are closed.

Contact

Sponsors

Text Links

On this page...

Tags

Calendar

<August 2008>
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

Archives

Google Ads