Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1038
  • Last Modified:

The directive 'page' is unknown

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Welcome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
    Welcome to the Writers Database
</asp:Content>

The above code generages this error "The directive 'page' is unknown."

0
Carla Romere
Asked:
Carla Romere
2 Solutions
 
TheMegaLoserCommented:
Are you sure the file is a page (aspx)?
0
 
Carla RomereDirector of Information TechnologyAuthor Commented:
This particular page is named default.aspx and references the master page, MasterPage.master.

The code posted is the code for the entire page right now.
0
 
Bob LearnedCommented:
Looks valid to me:

<%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="MasterPage.master" CodeFile="Default.aspx.vb" Inherits="_Default" %>

There isn't enough information to explain that error.

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now