Home All Groups Group Topic Archive Search About

Errors in Page directive

Author
27 Oct 2006 8:07 PM
Nathan Sokalski
I have a couple pages in my application that show errors in the Page directive that I cannot find. Here is a copy of my Page directive and the errors that it lists for it:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="adminhome.aspx.vb" Inherits="AFBE.adminhome" %>


Error 4 Character is not valid. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1 1 AFBE
Error 5 Expression expected. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1 1 AFBE
Error 6 End of statement expected. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1 1 AFBE



Several things I noticed that are making it hard for me to solve this problem are:

1. All three errors have the same Line & Column
2. The directive looks exactly the same as my Page directives always do
3. I am only recieving these errors in two of my pages
4. The directive was automatically generated

The other page that is giving these errors looks exactly the same, except that the CodeBehind and Inherits attributes are different. If anyone has any idea why this is causing an error, I would appreciate it. Thanks.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Author
27 Oct 2006 8:15 PM
Jeff Dillon
No need to cross-post so much

Create a brand new page with those directives. Could be hidden
garbage/corrupted characters


"Nathan Sokalski" <njsokal***@hotmail.com> wrote in message
news:OABaAOg%23GHA.2408@TK2MSFTNGP05.phx.gbl...
I have a couple pages in my application that show errors in the Page
directive that I cannot find. Here is a copy of my Page directive and the
errors that it lists for it:

<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="adminhome.aspx.vb" Inherits="AFBE.adminhome" %>


Error 4 Character is not valid. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1 1
AFBE
Error 5 Expression expected. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1 1 AFBE
Error 6 End of statement expected. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1
1 AFBE



Several things I noticed that are making it hard for me to solve this
problem are:

1. All three errors have the same Line & Column
2. The directive looks exactly the same as my Page directives always do
3. I am only recieving these errors in two of my pages
4. The directive was automatically generated

The other page that is giving these errors looks exactly the same, except
that the CodeBehind and Inherits attributes are different. If anyone has any
idea why this is causing an error, I would appreciate it. Thanks.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/
Author
27 Oct 2006 9:12 PM
Nathan Sokalski
I tried recreating the two pages that were giving these errors, but it is
giving them again. Is it possible that there is some setting somewhere that
is causing Visual Studio .NET to look at these files using a different
encoding, or some other setting that is causing the problem? Thanks.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Show quoteHide quote
"Jeff Dillon" <jef***@nowhere.com> wrote in message
news:uawcmSg%23GHA.4472@TK2MSFTNGP05.phx.gbl...
> No need to cross-post so much
>
> Create a brand new page with those directives. Could be hidden
> garbage/corrupted characters
>
>
> "Nathan Sokalski" <njsokal***@hotmail.com> wrote in message
> news:OABaAOg%23GHA.2408@TK2MSFTNGP05.phx.gbl...
> I have a couple pages in my application that show errors in the Page
> directive that I cannot find. Here is a copy of my Page directive and the
> errors that it lists for it:
>
> <%@ Page Language="vb" AutoEventWireup="false"
> CodeBehind="adminhome.aspx.vb" Inherits="AFBE.adminhome" %>
>
>
> Error 4 Character is not valid. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1 1
> AFBE
> Error 5 Expression expected. C:\Inetpub\wwwroot\AFBE\adminhome.aspx 1 1
> AFBE
> Error 6 End of statement expected. C:\Inetpub\wwwroot\AFBE\adminhome.aspx
> 1 1 AFBE
>
>
>
> Several things I noticed that are making it hard for me to solve this
> problem are:
>
> 1. All three errors have the same Line & Column
> 2. The directive looks exactly the same as my Page directives always do
> 3. I am only recieving these errors in two of my pages
> 4. The directive was automatically generated
>
> The other page that is giving these errors looks exactly the same, except
> that the CodeBehind and Inherits attributes are different. If anyone has
> any idea why this is causing an error, I would appreciate it. Thanks.
> --
> Nathan Sokalski
> njsokal***@hotmail.com
> http://www.nathansokalski.com/
>