|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Errors in Page directive<%@ 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. 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 I have a couple pages in my application that show errors in the Page news:OABaAOg%23GHA.2408@TK2MSFTNGP05.phx.gbl... 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. 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. Show 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/ > Show the page directives that ARE working
Show quote "Nathan Sokalski" <njsokal***@hotmail.com> wrote in message news:OWoH7xg%23GHA.3860@TK2MSFTNGP02.phx.gbl... >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/ > > "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/ >> > > Here are several of the Page directives that are not giving errors:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addadmin.aspx.vb" Inherits="AFBE.addadmin" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addathlete.aspx.vb" Inherits="AFBE.addathlete" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="index.aspx.vb" Inherits="AFBE.index" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="login.aspx.vb" Inherits="AFBE.login" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="profile.aspx.vb" Inherits="AFBE.profile" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="tournaments.aspx.vb" Inherits="AFBE.tournaments" %> Take note that all of the working Page directives have the same attributes in the same order as Page directives that are giving errors. As far as I can tell, the only difference between the working and non-working Page directives is the values for the CodeBehind and Inherits attributes. One thing that Visual Studio .NET 2005 is doing that I find weird while I was trying to solve the problem is if I delete the first character (the < at the beginning of the line), the Line and Column numbers disappear from the errors, and the directive is no longer underlined in the code, but the errors still show in the Error List. Any ideas or suggestions would be appreciated. Thanks. Show quote "Jeff Dillon" <jef***@nowhere.com> wrote in message news:uYeZ3Nh%23GHA.1128@TK2MSFTNGP05.phx.gbl... > Show the page directives that ARE working > > "Nathan Sokalski" <njsokal***@hotmail.com> wrote in message > news:OWoH7xg%23GHA.3860@TK2MSFTNGP02.phx.gbl... >>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/ >> >> "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/ >>> >> >> > > Here are several of the Page directives that are not giving errors:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addadmin.aspx.vb" Inherits="AFBE.addadmin" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addathlete.aspx.vb" Inherits="AFBE.addathlete" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="index.aspx.vb" Inherits="AFBE.index" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="login.aspx.vb" Inherits="AFBE.login" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="profile.aspx.vb" Inherits="AFBE.profile" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="tournaments.aspx.vb" Inherits="AFBE.tournaments" %> Take note that all of the working Page directives have the same attributes in the same order as Page directives that are giving errors. As far as I can tell, the only difference between the working and non-working Page directives is the values for the CodeBehind and Inherits attributes. One thing that Visual Studio .NET 2005 is doing that I find weird while I was trying to solve the problem is if I delete the first character (the < at the beginning of the line), the Line and Column numbers disappear from the errors, and the directive is no longer underlined in the code, but the errors still show in the Error List. Any ideas or suggestions would be appreciated. Thanks. Show quote "Jeff Dillon" <jef***@nowhere.com> wrote in message news:uYeZ3Nh%23GHA.1128@TK2MSFTNGP05.phx.gbl... > Show the page directives that ARE working > > "Nathan Sokalski" <njsokal***@hotmail.com> wrote in message > news:OWoH7xg%23GHA.3860@TK2MSFTNGP02.phx.gbl... >>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/ >> >> "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/ >>> >> >> > > Here are several of the Page directives that are not giving errors:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addadmin.aspx.vb" Inherits="AFBE.addadmin" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addathlete.aspx.vb" Inherits="AFBE.addathlete" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="index.aspx.vb" Inherits="AFBE.index" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="login.aspx.vb" Inherits="AFBE.login" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="profile.aspx.vb" Inherits="AFBE.profile" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="tournaments.aspx.vb" Inherits="AFBE.tournaments" %> Take note that all of the working Page directives have the same attributes in the same order as Page directives that are giving errors. As far as I can tell, the only difference between the working and non-working Page directives is the values for the CodeBehind and Inherits attributes. One thing that Visual Studio .NET 2005 is doing that I find weird while I was trying to solve the problem is if I delete the first character (the < at the beginning of the line), the Line and Column numbers disappear from the errors, and the directive is no longer underlined in the code, but the errors still show in the Error List. Any ideas or suggestions would be appreciated. Thanks. Show quote "Jeff Dillon" <jef***@nowhere.com> wrote in message news:uYeZ3Nh%23GHA.1128@TK2MSFTNGP05.phx.gbl... > Show the page directives that ARE working > > "Nathan Sokalski" <njsokal***@hotmail.com> wrote in message > news:OWoH7xg%23GHA.3860@TK2MSFTNGP02.phx.gbl... >>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/ >> >> "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/ >>> >> >> > > Here are several of the Page directives that are not giving errors:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addadmin.aspx.vb" Inherits="AFBE.addadmin" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addathlete.aspx.vb" Inherits="AFBE.addathlete" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="index.aspx.vb" Inherits="AFBE.index" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="login.aspx.vb" Inherits="AFBE.login" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="profile.aspx.vb" Inherits="AFBE.profile" %> <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="tournaments.aspx.vb" Inherits="AFBE.tournaments" %> Take note that all of the working Page directives have the same attributes in the same order as Page directives that are giving errors. As far as I can tell, the only difference between the working and non-working Page directives is the values for the CodeBehind and Inherits attributes. One thing that Visual Studio .NET 2005 is doing that I find weird while I was trying to solve the problem is if I delete the first character (the < at the beginning of the line), the Line and Column numbers disappear from the errors, and the directive is no longer underlined in the code, but the errors still show in the Error List. Any ideas or suggestions would be appreciated. Thanks. Show quote "Jeff Dillon" <jef***@nowhere.com> wrote in message news:uYeZ3Nh%23GHA.1128@TK2MSFTNGP05.phx.gbl... > Show the page directives that ARE working > > "Nathan Sokalski" <njsokal***@hotmail.com> wrote in message > news:OWoH7xg%23GHA.3860@TK2MSFTNGP02.phx.gbl... >>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/ >> >> "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/ >>> >> >> > > |
|||||||||||||||||||||||