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

Remove dependency to System.Web.HttpContext #49

Open
di97mni opened this issue Oct 25, 2015 · 1 comment
Open

Remove dependency to System.Web.HttpContext #49

di97mni opened this issue Oct 25, 2015 · 1 comment
Assignees
Labels

Comments

@di97mni
Copy link

di97mni commented Oct 25, 2015

System.Web.HttpContext.Current is null when running self host and you will get NullReferenceException below

https://github.com/WebApiContrib/WebApiContrib.Formatting.Xlsx/blob/master/src/WebApiContrib.Formatting.Xlsx/XlsxMediaTypeFormatter.cs#L90

@jordangray
Copy link
Member

Eugh, I hadn't considered that; bet it's annoyed a fair few people already. I'm not really conveniently around my computer this week, but I'll throw a null check in there some time in the next fortnight.

Thanks for letting me know!

@jordangray jordangray added the bug label Oct 27, 2015
@jordangray jordangray added this to the v2.0—flexibility milestone Oct 27, 2015
@jordangray jordangray self-assigned this Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants