Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: ASP.NET Parsing Error -- Global.asax


Message #1 by "Albert Davis" <albertdavis@h...> on Fri, 06 Apr 2001 17:24:33 -0400
What is causing these errors to occur?  Anyone have any suggestions?  Please 

read below...



I am getting the same error, and I'm just trying to do the sample on page

370, chapter 14, of the C# Programming with the public beta by Wrox Press.

My error looks like this:



Application Error

----------------------------------------------------------------------------

----



Parser Error

Description: An error occurred during the parsing of a resource required to

service this request. Please review the specific parse error details below

and modify your source file appropriately.



Parser Error Message: 'DateExService.Global' is not a valid base class to

inherit from



Source Error:





Line 1:  <%@ Application Codebehind="Global.cs"

Inherits="DateExService.Global" %>









Source File: C:\Inetpub\Application share - Web

Services\DateExService\global.asax    Line: 1







----------------------------------------------------------------------------

----



Version Information: Runtime Build: 1.0.2204.21; ASP.NET Build: 1.0.2204.21



What gives?



--Al



"Edward Juden" <ejuden@h...> wrote in message

news:#SqaIAUvAHA.2028@t...

>I am getting the exact same error, been working on solution all day.

>So far, I have reinstalled "Windows Component Update", "Visual Studio NET

>Beta 1".

>Still broken, I also noticed that all my .NET web applications are giving

>the same error.

>I sometimes get the error:

>Could not load assembly 'gena'. Please make sure that your assemblies are

>placed in D:\Inetpub\wwwroot\webformtest\bin\ or are globally accessible

>

>I have even cleaned the "Global Assembly Cache" directory, still nothing.

>

>Same error appears starting in Debug mode or without Debug mode.

>

>I am tired of chasing this one.

>

>

>

>"Luciano Aimi" <luci_68@h...> wrote in message

>news:OprdR3cuAHA.1916@t...

> > Now all my web application when start with F5 give me this error "Parser

> > Error Message: 'MyNamespace.Global' is not a valid base class to inherit

> > from

> > Source Error:

> > Line 1:  <%@ Application Codebehind="Global.cs"

> > Inherits="MyNamespace.Global" %>

> >

> >

> > Source File: c:\inetpub\wwwroot\WebApplication\global.asax    Line: 1

> >

> > can anyone help me? thanks

> >

> >

> >

>

>
Message #2 by "Gfw" <gfw@y...> on Mon, 9 Apr 2001 23:33:21
I was having the same problem on one machine - exxcept that it ran 

perfectly on one machine and not the other. Instead of a Vittual 

Directory, I created a Website and pointed it at the folder - the problem 

went away - don't know why, I just know it did. Good luck!









> What is causing these errors to occur?  Anyone have any suggestions?  

Please 

> read below...

> 

> I am getting the same error, and I'm just trying to do the sample on page

> 370, chapter 14, of the C# Programming with the public beta by Wrox 

Press.

> My error looks like this:

> 

> Application Error

> -------------------------------------------------------------------------

---

> ----

> 

> Parser Error

> Description: An error occurred during the parsing of a resource required 

to

> service this request. Please review the specific parse error details 

below

> and modify your source file appropriately.

> 

> Parser Error Message: 'DateExService.Global' is not a valid base class to

> inherit from

> 

> Source Error:

> 

> 

> Line 1:  <%@ Application Codebehind="Global.cs"

> Inherits="DateExService.Global" %>

> 

> 

> 

> 

> Source File: C:\Inetpub\Application share - Web

> Services\DateExService\global.asax    Line: 1

> 

> 

> 

> -------------------------------------------------------------------------

---

> ----

> 

> Version Information: Runtime Build: 1.0.2204.21; ASP.NET Build: 

1.0.2204.21

> 

> What gives?

> 

> --Al

> 

> "Edward Juden" <ejuden@h...> wrote in message

> news:#SqaIAUvAHA.2028@t...

> >I am getting the exact same error, been working on solution all day.

> >So far, I have reinstalled "Windows Component Update", "Visual Studio 

NET

> >Beta 1".

> >Still broken, I also noticed that all my .NET web applications are 

giving

> >the same error.

> >I sometimes get the error:

> >Could not load assembly 'gena'. Please make sure that your assemblies 

are

> >placed in D:\Inetpub\wwwroot\webformtest\bin\ or are globally accessible

> >

> >I have even cleaned the "Global Assembly Cache" directory, still 

nothing.

> >

> >Same error appears starting in Debug mode or without Debug mode.

> >

> >I am tired of chasing this one.

> >

> >

> >

> >"Luciano Aimi" <luci_68@h...> wrote in message

> >news:OprdR3cuAHA.1916@t...

> > > Now all my web application when start with F5 give me this 

error "Parser

> > > Error Message: 'MyNamespace.Global' is not a valid base class to 

inherit

> > > from

> > > Source Error:

> > > Line 1:  <%@ Application Codebehind="Global.cs"

> > > Inherits="MyNamespace.Global" %>

> > >

> > >

> > > Source File: c:\inetpub\wwwroot\WebApplication\global.asax    Line: 1

> > >

> > > can anyone help me? thanks

> > >

> > >

> > >

> >

Message #3 by "Chris Abrahamson" <cabra771@h...> on Thu, 12 Apr 2001 19:36:05
I'm not sure if this will fix it, but it seemed to work for me...

Try changing this line in the Global file:

<%@ Application Codebehind="Global.cs" Inherits="MyNamespace.Global" %>

to read

<%@ Application Language="c#" Codebehind="Global.cs" 

Inherits="MyNamespace.Global" %>

or whatever language you are using in your project.

I haven't been able to replicate the error, so if this fixes it, please 

let me know!



> What is causing these errors to occur?  Anyone have any suggestions?  

Please 

> read below...

> 

> I am getting the same error, and I'm just trying to do the sample on page

> 370, chapter 14, of the C# Programming with the public beta by Wrox 

Press.

> My error looks like this:

> 

> Application Error

> -------------------------------------------------------------------------

---

> ----

> 

> Parser Error

> Description: An error occurred during the parsing of a resource required 

to

> service this request. Please review the specific parse error details 

below

> and modify your source file appropriately.

> 

> Parser Error Message: 'DateExService.Global' is not a valid base class to

> inherit from

> 

> Source Error:

> 

> 

> Line 1:  <%@ Application Codebehind="Global.cs"

> Inherits="DateExService.Global" %>

> 

> 

> 

> 

> Source File: C:\Inetpub\Application share - Web

> Services\DateExService\global.asax    Line: 1

> 

> 

> 

> -------------------------------------------------------------------------

---

> ----

> 

> Version Information: Runtime Build: 1.0.2204.21; ASP.NET Build: 

1.0.2204.21

> 

> What gives?

> 

> --Al

> 

> "Edward Juden" <ejuden@h...> wrote in message

> news:#SqaIAUvAHA.2028@t...

> >I am getting the exact same error, been working on solution all day.

> >So far, I have reinstalled "Windows Component Update", "Visual Studio 

NET

> >Beta 1".

> >Still broken, I also noticed that all my .NET web applications are 

giving

> >the same error.

> >I sometimes get the error:

> >Could not load assembly 'gena'. Please make sure that your assemblies 

are

> >placed in D:\Inetpub\wwwroot\webformtest\bin\ or are globally accessible

> >

> >I have even cleaned the "Global Assembly Cache" directory, still 

nothing.

> >

> >Same error appears starting in Debug mode or without Debug mode.

> >

> >I am tired of chasing this one.

> >

> >

> >

> >"Luciano Aimi" <luci_68@h...> wrote in message

> >news:OprdR3cuAHA.1916@t...

> > > Now all my web application when start with F5 give me this 

error "Parser

> > > Error Message: 'MyNamespace.Global' is not a valid base class to 

inherit

> > > from

> > > Source Error:

> > > Line 1:  <%@ Application Codebehind="Global.cs"

> > > Inherits="MyNamespace.Global" %>

> > >

> > >

> > > Source File: c:\inetpub\wwwroot\WebApplication\global.asax    Line: 1

> > >

> > > can anyone help me? thanks

> > >

> > >

> > >

> >

Message #4 by "Samuel Engelman" <samuel_engelman@p...> on Tue, 17 Apr 2001 10:56:39 -0400
You must forst compile the application.











"Albert Davis" <albertdavis@h...>

Friday April 6, 2001 05:24 PM



Please respond to "ASP+" <aspx@p...>

To:   "ASP+" <aspx@p...>

cc:

Subject:  [aspx] ASP.NET Parsing Error -- Global.asax





What is causing these errors to occur?  Anyone have any suggestions?

Please

read below...



I am getting the same error, and I'm just trying to do the sample on page

370, chapter 14, of the C# Programming with the public beta by Wrox Press.

My error looks like this:



Application Error

---------------------------------------------------------------------------

-

----



Parser Error

Description: An error occurred during the parsing of a resource required to

service this request. Please review the specific parse error details below

and modify your source file appropriately.



Parser Error Message: 'DateExService.Global' is not a valid base class to

inherit from



Source Error:





Line 1:  <%@ Application Codebehind="Global.cs"

Inherits="DateExService.Global" %>









Source File: C:\Inetpub\Application share - Web

Services\DateExService\global.asax    Line: 1







---------------------------------------------------------------------------

-

----



Version Information: Runtime Build: 1.0.2204.21; ASP.NET Build: 1.0.2204.21



What gives?



--Al



Message #5 by "Albert Davis" <albertdavis@h...> on Tue, 17 Apr 2001 12:07:36 -0400
Thanks,

That worked...





>From: "Samuel Engelman" <samuel_engelman@p...>

>Reply-To: "ASP+" <aspx@p...>

>To: "ASP+" <aspx@p...>

>Subject: [aspx] Re: ASP.NET Parsing Error -- Global.asax

>Date: Tue, 17 Apr 2001 10:56:39 -0400

>

>You must forst compile the application.

>

>


  Return to Index