Marc
|
Posted: 12/12/2004, 7:57 AM |
|
Hi,
I have downloaded the trial version and build a store from the template. After a succesful build I tried to run the application usiing the webmatrix webserver and the very first message is:
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: There can be only one 'page' directive.
Source Error:
Line 1: <%@ Page Language="VB" %>
Line 2: <!--ASPX page @1-173A6D75-->
Line 3: <%@ Page language="vb" Codebehind="Default.aspx.vb" AutoEventWireup="false" Inherits="NewProject2.Default.DefaultPage" %>
Line 4: <%@ Import namespace="NewProject2.Default" %>
Line 5: <%@ Import namespace="NewProject2.Configuration" %>
Source File: C:\Documents and Settings\Marc\Bureaublad\deplug2\Default.aspx Line: 3
since i have only used default options i think this is strange. any suggestions ?
Thanks in advance,
kind regards,
Marc
|
|
|
Marc
|
Posted: 12/12/2004, 4:03 PM |
|
ahum, i think i've found out what the problem is myself. when opening the default file in webmatrix, the editror adds a page line.
case closed.
|
|
|
jagan
|
Posted: 04/11/2005, 10:36 PM |
|
The JLCA will add the same generic Page directive to the top of each newly created .aspx file. This means that when you include header.aspx into main.aspx, there will essentially be two page directives on a single ASP.NET page. This is not allowed, as page directives must be unique, and will therefore result in a parser error.
The easy solution to this problem is simply to erase the page directive from the top of header.aspx.
|
|
|
|