Skip to content
This repository has been archived by the owner on Dec 8, 2018. It is now read-only.

File name is not displayed on error page middleware on Mac #36

Closed
suhasj opened this issue Sep 22, 2014 · 2 comments
Closed

File name is not displayed on error page middleware on Mac #36

suhasj opened this issue Sep 22, 2014 · 2 comments

Comments

@suhasj
Copy link
Contributor

suhasj commented Sep 22, 2014

Applying the pending PR on Mac, I was able to get the error page in case of an exception. The file information is not displayed as expected though. Attached screen shot

screen shot 2014-09-22 at 3 23 40 pm

@Praburaj
Copy link
Contributor

This is because mono does not give debug information like file name or line numbers in the exception messages (i tried passing --debug switch to mono.exe as well). With a recent fix that I pushed for error page middleware, function names are printed like below. If mono gives file name and line numbers with exception messages, the middleware should automatically handle it. I guess this bug can be closed if there are no concerns.

An unhandled exception occurred while processing the request.
Exception: Hey what's up
MusicStore.Controllers.HomeController.Index () [0x00000]
• Stack 
• Query 
• Cookies 
• Headers 
• Environment
• Exception: Hey what's up
o MusicStore.Controllers.HomeController.Index () [0x00000]
o

o System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o Microsoft.AspNet.Mvc.ControllerActionExecutor+d__2.MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter1[System.Object].GetResult () [0x00000] o Microsoft.AspNet.Mvc.ControllerActionExecutor+<ExecuteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter1[System.Object].GetResult () [0x00000]
o Microsoft.AspNet.Mvc.ControllerActionInvoker+d__1.MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter1[Microsoft.AspNet.Mvc.IActionResult].GetResult () [0x00000] o Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeActionMethodFilter>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Mvc.ControllerActionInvoker+<InvokeAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Mvc.MvcRouteHandler+<RouteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Routing.Template.TemplateRoute+<RouteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Routing.RouteCollection+<RouteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Builder.RouterMiddleware+<Invoke>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.MicrosoftAccount.MicrosoftAccountAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+<Invoke>d__1[Microsoft.AspNet.Security.Twitter.TwitterAuthenticationOptions].MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.Google.GoogleAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+<Invoke>d__1[Microsoft.AspNet.Security.Facebook.FacebookAuthenticationOptions].MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+<Invoke>d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Builder.Extensions.MapMiddleware+d__1.MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Diagnostics.ErrorPageMiddleware+d__1.MoveNext () [0x00000]

@suhasj
Copy link
Contributor Author

suhasj commented Mar 20, 2015

Sure we can check again once we have coreclr support on mac

@Tratcher Tratcher removed the 3 - Done label Apr 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants