Last post Feb 07, 2009 11:38 PM by Rick Matthys
Feb 07, 2009 02:40 PM|crickets|LINK
Would anyone know what might be causing the following compile errors?
I just converted a project form VS 2003 to VS 2005.
Error 1 'ASP.parent_newsletters_aspx.GetTypeHashCode()': no suitable method found to override c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30\28b4c3da\1ad82054\App_Web_tfsdbvxg.4.cs 3219
Error 2 'ASP.parent_newsletters_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30\28b4c3da\1ad82054\App_Web_iohkgnj9.2.cs 3224
Error 3 'ASP.parent_newsletters_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30\28b4c3da\1ad82054\App_Web_iohkgnj9.2.cs 452
I tried deleteing all the files in the C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30 folder, but that didn't seem to help.
Feb 07, 2009 11:38 PM|Rick Matthys|LINK
Since you're already going thru a conversion process, you should convert to 2008! There's a big difference and it'll make your life easier down the road. But assuming you can't....
The most common reason you get these error is when inherits attribute in you .aspx page directive is not the same as the
class name in your code behind.
<%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="aaaaaaa" %>
aaaaaaa must be the name of the class in the code behind. If you have a namespace in the code behind, the inherits attibute must be "the.namespace.aaaaaaa"