Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElmahExceptionLogger Doesn't work on Web Api 2.2 #16

Closed
rolandocc opened this issue Dec 11, 2014 · 1 comment
Closed

ElmahExceptionLogger Doesn't work on Web Api 2.2 #16

rolandocc opened this issue Dec 11, 2014 · 1 comment

Comments

@rolandocc
Copy link

if (!request.Properties.TryGetValue("MS_HttpContext", out value))
return null;

Always returns null because there is no "MS_HttpContext" property available.

brutaldev added a commit to brutaldev/elmah-contrib-webapi that referenced this issue May 15, 2015
Only try to get the application context if the request property is
found, otherwise fallback to `HttpContext.Current` as a last ditch
attempt at getting a context which could also return `null`.
rdingwall added a commit that referenced this issue Jun 28, 2015
@rdingwall
Copy link
Owner

Fixed in 1.0.10.25. Thanks @brutaldev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants