Search code examples
c#asp.netvisual-studio-2010web-applicationsparse-error

Parse Error When Going To Web Application


I am getting a parse error when I go to my web application. I am not sure how to solve this, as I am new to WebApps. I have read some things about adding it into the right namespace, is that what I need to do? How would I do that?

You can see the error below or go to the page itself: hyperslurp.com/ccrm/

The Error I Am Getting


Solution

  • As the error message suggests, it seems that your codebehind page doesn't derive from System.Web.UI.Page. So make sure that this is the case with the Default.aspx.cs file:

    namespace CompostCrew
    {
        public partial class _Default: System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
    
            }
    
            ...
        }
    }