Getting Parse Errors
When I open demo pages that I downloaded from this website for the book and try and view them in the browser I get this message:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls.
Source Error:
Line 1: @ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
Line 2: CodeFile="Default.aspx.cs" Inherits="_Default"
Line 3:
Source File: /WebSite1/default.aspx Line: 1
This happens for every demo default.aspx file now for some reason.
|