[Mono-bugs] [Bug 77162][Nor] New - Response.Redirect fails when called from global.asax

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 5 01:52:13 EST 2006


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 scottellington at comcast.net.

http://bugzilla.ximian.com/show_bug.cgi?id=77162

--- shadow/77162	2006-01-05 01:52:13.000000000 -0500
+++ shadow/77162.tmp.20221	2006-01-05 01:52:13.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 77162
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: scottellington at comcast.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Response.Redirect fails when called from global.asax
+
+If Response.Redirect is called from global.asax like so:
+
+void Application_Start(object obj, EventArgs e)
+{
+	Response.Redirect ("redirect.aspx");
+}
+
+It fails with the following information:
+
+Server error in '/' application
+Description: Error processing request.
+
+Error Message: HTTP 500.
+
+Stack Trace:
+
+System.Reflection.TargetInvocationException: Exception has been thrown by
+the target of an invocation. ---> System.NullReferenceException: Object
+reference not set to an instance of an object
+in <0x00052> System.Web.HttpResponse:End ()
+in <0x000cd> System.Web.HttpResponse:Redirect (System.String url, Boolean
+endResponse)
+in <0x0000f> System.Web.HttpResponse:Redirect (System.String url)
+in <0x0001b> ASP.global_asax:Application_Start (System.Object obj,
+System.EventArgs e)
+in <0x00000> <unknown method>
+in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
+(object,object[])
+in <0x0008d> System.Reflection.MonoMethod:Invoke (System.Object obj,
+BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
+parameters, System.Globalization.CultureInfo culture)--- End of inner
+exception stack trace ---
+
+in <0x0010e> System.Reflection.MonoMethod:Invoke (System.Object obj,
+BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
+parameters, System.Globalization.CultureInfo culture)
+in <0x0001a> System.Reflection.MethodBase:Invoke (System.Object obj,
+System.Object[] parameters)
+in <0x00095> System.Web.HttpApplicationFactory:FireEvent (System.String
+method_name, System.Object target, System.Object[] args)
+in <0x00095> System.Web.HttpApplicationFactory:FireOnAppStart
+(System.Web.HttpContext context)
+in <0x000ee> System.Web.HttpApplicationFactory:GetApplication
+(System.Web.HttpContext context)
+in <0x00083> System.Web.HttpRuntime:RealProcessRequest (System.Object o)


More information about the mono-bugs mailing list