🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.aspdotnet.general
Article #27

Re: Project.Global class could not be found

#27
From: Andrew
Date: Tue, 04 Jan 2005 23:20
34 lines
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
Technical Details
Message-ID: <41db24d0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41db21f9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 124d48,19d18d289ea55250
X-Google-Attributes: gid124d48,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Andrew" <andrewgil@dodo.com.au>
From: "Andrew" <andrewgil@dodo.com.au>
Newsgroups: borland.public.csharpbuilder.aspdotnet.general
References: <41db21f9@newsgroups.borland.com>
Subject: Re: Project.Global class could not be found
Date: Wed, 5 Jan 2005 10:20:52 +1100
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 203.220.157.86
Message-ID: <41db24d0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104880848 203.220.157.86 (4 Jan 2005 15:20:48 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail