Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2006, 06:43 AM
Authorized User
 
Join Date: May 2006
Location: kathmandu, bagmati, Nepal.
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to pratik28
Default problem defining namespace for .aspx page



I tried to add namespace for .aspx page in the following manner:

namespace NewWebSite.Forms
{
    public partial class Forms_WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}




But i received the following error on compilation:

Error 1 'ASP.forms_webform1_aspx.GetTypeHashCode()': no suitable method found to overridec:\WINDOWS\Microsoft.NET\Frameworkv2.0.507 27\Temporary ASP.NET
Files\newwebsite\487c509f\be4ec92b\App_Web_vy5woww w.0.cs


Error 2 'ASP.forms_webform1_aspx.ProcessRequest(System.Web .HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\newwebsite\487c509f\be4ec92b\App_Web_vy5woww w.0.cs

Error 3 'ASP.forms_webform1_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\newwebsite\487c509f\be4ec92b\App_Web_vy5woww w.0.cs


Error 4 Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). D:\C# .Net Sample\ASP.NET 2.0\NewWebSite\Forms\WebForm1.aspx.cs 14 33 D:\...\NewWebSite

The namespace "NewWebSite.Forms" is exactly correct as the name of the project and the foler name "Forms" in which the .aspx page residesi It would be appreciable if i could get solution to the above problem thank you in advance.


imspratik
__________________
imspratik




Similar Threads
Thread Thread Starter Forum Replies Last Post
BrowseArticles.aspx Page Problem mashour BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 November 30th, 2008 07:27 PM
Include Namespace in .aspx.vb?? mikedeepak Visual Studio 2005 6 June 1st, 2007 04:31 AM
Defining Classes for Elements; page 734 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 23rd, 2006 04:10 AM
Getting problem while running an aspx page manoj.mohanty BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 May 3rd, 2006 07:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.