473,471 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Page Directive

I am trying to create the Chart application from Chapter 27 in ASP.net Unleashed. When I go to load my page I receive the following error message:

Server Error in '/' Application.
--------------------------------------------------------------------------------

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: The directive 'Page' is unknown.

Source Error:

Line 1: <%@ Page Language="VB" Debug="true" %>
Line 2: <%@ Register TagPrefix="myControl" TagName="Chart" Src="Chart.ascx" %>
Line 3: <%@ import Namespace="System.Data.SqlClient" %>


Can anyone tell me what I might be overlooking? Any help is greatly appreciated!

Thanks,
Keith
Nov 18 '05 #1
2 4168
What is the extension of your file?
ASPX?

George.
"Keith" <kc****@hotmail.com> wrote in message news:eD**************@TK2MSFTNGP09.phx.gbl...
I am trying to create the Chart application from Chapter 27 in ASP.net Unleashed. When I go to load my page I receive the following error message:

Server Error in '/' Application.
------------------------------------------------------------------------------

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: The directive 'Page' is unknown.

Source Error:

Line 1: <%@ Page Language="VB" Debug="true" %>
Line 2: <%@ Register TagPrefix="myControl" TagName="Chart" Src="Chart.ascx" %>
Line 3: <%@ import Namespace="System.Data.SqlClient" %>


Can anyone tell me what I might be overlooking? Any help is greatly appreciated!

Thanks,
Keith
Nov 18 '05 #2
Yes the extension is ASPX. I am fairly new to this, but maybe this will help as well. I have also created a user control with a .ascx extension which is the source for the Chart control created in the .aspx file.

Thx,
Keith
"George Ter-Saakov" <no****@hotmail.com> wrote in message news:ee**************@TK2MSFTNGP09.phx.gbl...
What is the extension of your file?
ASPX?

George.
"Keith" <kc****@hotmail.com> wrote in message news:eD**************@TK2MSFTNGP09.phx.gbl...
I am trying to create the Chart application from Chapter 27 in ASP.net Unleashed. When I go to load my page I receive the following error message:

Server Error in '/' Application.
----------------------------------------------------------------------------

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: The directive 'Page' is unknown.

Source Error:

Line 1: <%@ Page Language="VB" Debug="true" %>
Line 2: <%@ Register TagPrefix="myControl" TagName="Chart" Src="Chart.ascx" %>
Line 3: <%@ import Namespace="System.Data.SqlClient" %>


Can anyone tell me what I might be overlooking? Any help is greatly appreciated!

Thanks,
Keith
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Jeff | last post by:
Hi - I'm trying to get my ASP.NET pages to work the same way on my development machine (running from the VS.NET IDE) and on a remote (3rd-party) server. The only way I've been able to come up...
5
by: henrybranson | last post by:
I'm trying to create an RSS feed that is written dynamically by an ASP.NET page. I know there are several ways to do it, but the quickest for me was to follow the Scott Mitchell tutorial at...
2
by: rjack | last post by:
I'm using VS 2005 Beta 2. In VS 2003, the Page directive in an aspx page has Language and CodeBehind attributes. You can have the language be different than the code behind file language. For...
3
by: DC | last post by:
Hi, (ASP.Net 1.1) is it possible to (programmatically and globally) deactivate page fragment caching? We have only two scenarios, development stage where we want caching off and testing where we...
1
by: Poppy | last post by:
I opened an asp page in VS.net 2002 and then saved it as an aspx page. I was prompted if I wanted to create the class file for the page and clicked yes. Now when I try and open the page I get...
5
by: homertbush | last post by:
When our asp.net pages are rendered out as html the page directive is still in the html. ie. The following page directive is present in the body of the html of the rendered page: <%@ Page...
4
by: Suresh | last post by:
Is there any way to access the custom properties of a master page from the aspx form? I know the custom properties of a master page can be accessed from the aspx.cs partial class by specifying...
3
by: Rotsey | last post by:
Hi, I have just installed the web application project addon for VS2005. I want to have a master page so I put a directive in the web config pointing to my page. Now I want to create a...
4
by: senfo | last post by:
This is probably a really stupid question, but what exactly is the <%@ Page %directive? I thought I knew the answer to this, but now I'm not so sure that I do. Essentially, what I'd hope to...
2
by: Eric | last post by:
Hi All, I am working with an ASP.NET website with .NET 1.1. I want to increase the maxRequestLength value for *only* a single page (therefore, I can't set the new value in machine.config or...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.