dotnet-buildpack-old
dotnet-buildpack-old copied to clipboard
The type or namespace name `HttpApplication' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
I'm trying to deploy a ServiceStack app (https://github.com/kylehodgson/servicestack-todo-backend) to Heroku on the mono buildpack. The deploy fails with an error (and some warnings):
Global.asax.cs(5,34): error CS0234: The type or namespace name `HttpApplication' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
The full output is here: https://gist.github.com/kylehodgson/2b1e497bcf728fd9de4e
I'm getting similar errors with the TestingMono application too: https://gist.github.com/kylehodgson/12b40d84abf0fa6685f2
Any ideas?
It seems those assemblies aren't included in the packaged version of Mono your build uses.
You could build your own version though: there are links for this in the README section, and #2 has some details as well.
You could also check if those namespaces are indeed in their corresponding dll file, or perhaps something different.
OK, thanks. I'm a bit confused still. Is that something I change?
I assume the buildpack sets that. Should I go to a newer (or older) Mono? How do I do that?
Hey Kyle, I'm sorry about this breakage. I'm travelling right now, but will try to get to this in a day or two.
No worries friism. I've forked it to work on it a bit. I'll let you know if I make progress. https://github.com/kylehodgson/heroku-buildpack-mono