dotnet-buildpack-old icon indicating copy to clipboard operation
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?

Open kylehodgson opened this issue 10 years ago • 4 comments

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?

kylehodgson avatar Jan 26 '15 02:01 kylehodgson

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.

molnargab avatar Feb 14 '15 14:02 molnargab

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?

kylehodgson avatar Feb 14 '15 23:02 kylehodgson

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.

friism avatar Feb 15 '15 02:02 friism

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

kylehodgson avatar Feb 15 '15 19:02 kylehodgson