Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parser error
Message
 
To
22/10/2003 13:46:10
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00841175
Message ID:
00842401
Views:
29
You should not rename the Global class and Global.asax. This thing is hardwired in a few places because this is the base object that 'hosts' your ASP.Net application. It's an HTTPApplication instance and the global class is the bootstrap so to say.

As to SRC vs. COdebehind. SRC allows you to keep the source file on disk and have it compiled on the fly. Codebehind means the class is compiled and lives in an assembly in the BIN directory (your Web project).

+++ Rick ---

>I am using .Net 2003. I am trying to build ASP.Net applications, however whenever I build my project and then try to view the webform in a browser, I keep getting the following Parser Error.
>
>I have read somewhere about changing the global.asax and the .Aspx source lines from the Codebehind statement to src. For Example:
>Codebehind="Global.asax.cs" change to src="Global.asax.cs"
>and
>Codebehind="employee.aspx.cs" change to src="employee.aspx.cs"
>
>This does allow me to view my webform in a browser and everything works, however I can't edit my .ASPX in the designer again unless I change the above line to read Codebehind="employee.aspx.cs".
>
>Why does src="employee.aspx.cs" allow my webforms to work?
>
>What can I do to correct these Parser Errors?
>
>Any suggestions?
>
>Thanks,
>
>Jerry
>
>
>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 'employee.Global'.
>
>Source Error:
>Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="employee.Global"   
>
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform