473,769 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ 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="myCo ntrol" TagName="Chart" Src="Chart.ascx " %>
Line 3: <%@ import Namespace="Syst em.Data.SqlClie nt" %>


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

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

George.
"Keith" <kc****@hotmail .com> wrote in message news:eD******** ******@TK2MSFTN GP09.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="myCo ntrol" TagName="Chart" Src="Chart.ascx " %>
Line 3: <%@ import Namespace="Syst em.Data.SqlClie nt" %>


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******** ******@TK2MSFTN GP09.phx.gbl...
What is the extension of your file?
ASPX?

George.
"Keith" <kc****@hotmail .com> wrote in message news:eD******** ******@TK2MSFTN GP09.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="myCo ntrol" TagName="Chart" Src="Chart.ascx " %>
Line 3: <%@ import Namespace="Syst em.Data.SqlClie nt" %>


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
345
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 with requires changing the page directive for each page between codebehind (for the IDE) and src (for the remote server). While that's a bit annoying for a single page, it's a pretty untenable approach for a website with lots of pages. Is there...
5
1443
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 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-createrssw-aspnet.asp. I think the problem is that the <@ page > directive at the top of the ASP.NET page creates a blank first line in the outputted XML. This blank...
2
1655
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 instance, you can have Language="vb" CodeBehind="classA.cs" In VS 2005, the CodeBehind attribute seems to have been replaced with
3
2489
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 want caching on. Is this doable? I think there is a config switch in 2.0, anything in 1.1? TIA for any hint,
1
4443
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 the error message : "There can be only one 'page' directive." I am sick of these problems.
5
1362
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 CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="Briggs.about" %> <%@ Register TagPrefix="uc1" TagName="WebUserControlSearch" Src="WebUserControlSearch.ascx" %>
4
2791
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 the MasterType directive on the aspx form. My master page will render a custom navigation menu and I'd like to put in the properties of which tab and sub tab to load and other misc style info in the aspx form that can be used by master page.
3
1274
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 page. So I remove all the html in the page except the page directive at the top and replace with a asp:content
4
1821
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 accomplish, is to be able to add new attributes to the Page element to provide custom functionality. For example, one of the ASP.NET 2.0 apps that I'm working on has a help button on most pages. The help button, which is part of the MasterPage,...
2
5388
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 web.config because doing so would affect *all* pages). I can't figure out how to do this... is there a page directive or something I'm not seeing? Thanks for your help!!
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
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.