[Mono-bugs] [Bug 76285][Wis] New - Basic global.asax.cs causes
problems w/ asp.net 2.0 profile
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 29 21:55:10 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by mmorano at mikeandwan.us.
http://bugzilla.ximian.com/show_bug.cgi?id=76285
--- shadow/76285 2005-09-29 21:55:10.000000000 -0400
+++ shadow/76285.tmp.24180 2005-09-29 21:55:10.000000000 -0400
@@ -0,0 +1,164 @@
+Bug#: 76285
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com
+ReportedBy: mmorano at mikeandwan.us
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Basic global.asax.cs causes problems w/ asp.net 2.0 profile
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+I upgraded mono w/ a fresh copy from svn (r51014), and when I try to access
+my site (using xsp2), I get an error stating that there is a parse error
+for the global.asax. The site did previously work, and even after removing
+all logic from the various methods in global.asax.cs, still continued to
+get this error.
+
+Steps to reproduce the problem:
+1. Access a website with a fresh xsp2 that has a global.asax and supporting
+cs file (compiled as usual into an assembly in the bin folder), such as the
+following:
+
+
+using System;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+
+namespace MikeAndWanUS.WebApp
+{
+ public class Global
+ : HttpApplication
+ {
+ public Global() : base()
+ {
+ }
+
+ protected void Application_Start(object sender, EventArgs e)
+ {
+ }
+
+ protected void Session_Start(object sender, EventArgs e)
+ {
+ }
+
+ protected void Application_BeginRequest(object sender, EventArgs e)
+ {
+ }
+
+ protected void Application_EndRequest(object sender, EventArgs e)
+ {
+ }
+
+ protected void Application_AuthenticateRequest(object sender,
+ EventArgs e)
+ {
+ }
+
+ protected void Application_AuthorizeRequest(object sender, EventArgs e)
+ {
+ }
+
+ protected void Application_Error(object sender, EventArgs e)
+ {
+ }
+
+ protected void Session_End(object sender, EventArgs e)
+ {
+ }
+
+ protected void Application_End(object sender, EventArgs e)
+ {
+ }
+ }
+}
+
+
+Actual Results:
+
+Server Error in '/' Application
+Compilation Error
+Description: Error compiling a resource required to service this request.
+Review your source file and modify it to fix this error.
+
+Error message: /tmp/mmorano-temp-aspnet-0/b255c9a3/10926.0.cs(26,30) :
+error CS8025: Parsing error
+
+File name: /home/mmorano/code/new_website/production/Global.asax
+
+Source File: /tmp/mmorano-temp-aspnet-0/b255c9a3/10926.0.cs
+
+Line 1: //
+------------------------------------------------------------------------------
+Line 2: // <autogenerated>
+Line 3: // This code was generated by a tool.
+Line 4: // Mono Runtime Version: 2.0.50215.16
+Line 5: //
+Line 6: // Changes to this file may cause incorrect behavior and will
+be lost if
+Line 7: // the code is regenerated.
+Line 8: // </autogenerated>
+Line 9: //
+------------------------------------------------------------------------------
+Line 10:
+Line 11: namespace ASP {
+Line 12: using System;
+Line 13: using System.Collections;
+Line 14: using System.Collections.Specialized;
+Line 15: using System.Configuration;
+Line 16: using System.Text;
+Line 17: using System.Text.RegularExpressions;
+Line 18: using System.Web;
+Line 19: using System.Web.Caching;
+Line 20: using System.Web.Security;
+Line 21: using System.Web.SessionState;
+Line 22: using System.Web.UI;
+Line 23: using System.Web.UI.WebControls;
+Line 24: using System.Web.UI.HtmlControls;
+Line 25:
+Line 26: public class MikeAndWanUS.WebApp.Global :
+System.Web.HttpApplication {
+Line 27:
+Line 28: private static bool __intialized = false;
+Line 29:
+Line 30: public MikeAndWanUS.WebApp.Global() {
+Line 31: if ((ASP.MikeAndWanUS.WebApp.Global.__intialized ==
+false)) {
+Line 32: ASP.MikeAndWanUS.WebApp.Global.__intialized = true;
+Line 33: }
+Line 34: }
+Line 35: }
+Line 36:
+Line 37: }
+
+
+
+Expected Results:
+
+The website would run w/o error.
+
+
+How often does this happen?
+
+always
+
+
+Additional Information:
+
+This worked prior, and is working with a 1.1.8 version of mono.
+
+
+Thanks,
+Mike
More information about the mono-bugs
mailing list