Thread View: borland.public.csharpbuilder.aspdotnet.general
6 messages
6 total messages
Started by Andrew
Tue, 04 Jan 2005 23:08
Project.Global class could not be found
Author: Andrew
Date: Tue, 04 Jan 2005 23:08
Date: Tue, 04 Jan 2005 23:08
59 lines
2572 bytes
2572 bytes
The Global.asax file just contains the one line
<%@ Application Codebehind="Global.asax.cs" Inherits="Project.Global" %>
The Global.asax.cs file contains:
using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
namespace Project
{
/// <summary>
/// Summary description for Global.
/// </summary>
public class Global : System.Web.HttpApplication
{
public Global()
{
InitializeComponent();
}
//Other functions are contained but I'll skip them for time
}
}
With these two files I get a parser error
Server Error in '/Project' 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: Could not load type 'Project.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="OCAMSOnline.Global" %>
Line 2:
Source File: c:\inetpub\wwwroot\Project\global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
PLEASE NOTE THAT THE NAMESPACE AND ALL DIRECTORIES THAT REFER TO THE PROJECT
NAME HAVE BEEN CHANGED
Re: Project.Global class could not be found
Author: Andrew
Date: Tue, 04 Jan 2005 23:20
Date: Tue, 04 Jan 2005 23:20
34 lines
2595 bytes
2595 bytes
I forgot to change the project name in one of the places in the Parser Error
section. Here is the updated version
The Global.asax file just contains the one line
<%@ Application Codebehind="Global.asax.cs" Inherits="Project.Global" %>
The Global.asax.cs file contains:
using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
namespace Project
{
/// <summary>
/// Summary description for Global.
/// </summary>
public class Global : System.Web.HttpApplication
{
public Global()
{
InitializeComponent();
}
//Other functions are contained but I'll skip them for time
}
}
With these two files I get a parser error
Server Error in '/Project' Application.
-------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse errordetails and modify your source file appropriately. Parser Error Message: Could not load type 'Project.Global'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs"Inherits="Project.Global" %>Line 2: Source File: c:\inetpub\wwwroot\Project\global.asax Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032;ASP.NET Version:1.1.4322.2032 PLEASE NOTE THAT THE NAMESPACE AND ALL DIRECTORIES THAT REFER TO THEPROJECT NAME HAVE BEEN CHANGED
Re: Project.Global class could not be found
Author: Marc Rohloff TeamB
Date: Tue, 04 Jan 2005 23:24
Date: Tue, 04 Jan 2005 23:24
15 lines
1594 bytes
1594 bytes
On Wed, 5 Jan 2005 10:08:47 +1100, Andrew wrote: > 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: Could not load type 'Project.Global'. Are you using cassini or iis? Did you compile the global.asax.cs file into your project? -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Re: Project.Global class could not be found
Author: Andrew
Date: Wed, 05 Jan 2005 00:52
Date: Wed, 05 Jan 2005 00:52
26 lines
1962 bytes
1962 bytes
I am using IIS The global.asax.cs was generated by C#Builder and it in the TreeList is coming off the Global.asax file Though I don't know if it was compiled or not. Anyway I thought IIS automatically compiles if there is only .cs files and not dlls "Marc Rohloff [TeamB]" <"on request"> wrote in message news:140bowb7qnnyh$.dlg@marcrohloff.40tude.net... > On Wed, 5 Jan 2005 10:08:47 +1100, Andrew wrote: > >> 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: Could not load type 'Project.Global'. > > Are you using cassini or iis? Did you compile the global.asax.cs file > into your project? > > -- > Marc Rohloff [TeamB] > marc rohloff -at- myrealbox -dot- com
Re: Project.Global class could not be found
Author: Marc Rohloff [TeamB]
Date: Thu, 06 Jan 2005 21:13
Date: Thu, 06 Jan 2005 21:13
17 lines
1530 bytes
1530 bytes
"Andrew" <andrewgil@dodo.com.au> wrote: >Though I don't know if it was compiled or not. Anyway I thought IIS >automatically compiles if there is only .cs files and not dlls > Generally you should compile from the IDE. You can check the resulting assembly in the bin directory with a reflection tool to make sure. If you expect IIS to autmatically compile then your need to add the 'src' directive to the @Application tag like this: <%@ Application Codebehind="Global.asax.cs" src="Global.asax.cs" Inherits="Project.Global" %> -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Re: Project.Global class could not be found
Author: Andrew
Date: Thu, 06 Jan 2005 22:06
Date: Thu, 06 Jan 2005 22:06
24 lines
2047 bytes
2047 bytes
Thanks. That Fixed it "Marc Rohloff [TeamB]" <nospam@nospam.invalid> wrote in message news:41dda9eb$1@newsgroups.borland.com... > > "Andrew" <andrewgil@dodo.com.au> wrote: > >>Though I don't know if it was compiled or not. Anyway I thought IIS >>automatically compiles if there is only .cs files and not dlls >> > > Generally you should compile from the IDE. You can check the resulting > assembly in the bin directory with a reflection tool to make sure. > > If you expect IIS to autmatically compile then your need to add the 'src' > directive to the @Application tag like this: > > <%@ Application Codebehind="Global.asax.cs" src="Global.asax.cs" > Inherits="Project.Global" %> > > > -- > Marc Rohloff [TeamB] > marc rohloff -at- myrealbox -dot- com >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads