aspnetcore: Server Hangs on OS X, RC1, HelloMvc

On El Capitan using the following Dot Net Env:

1.0.0-rc1-final    mono                    linux/osx mono

I checked out this sample: https://github.com/aspnet/Home/tree/dev/samples/1.0.0-rc1-final/HelloMvc

Then, using 1.0.0-rc1-final mono, I ran:

dnu restore
dnu build
DNX_TRACE=1
dnx web

When navigating to http://localhost:5004 I get the following output, and the server just hangs indefinitely

joshuapearce@ZOSIMA:~/Dev/coreclr/aspnet/Home/samples/1.0.0-rc1-final/HelloMvc$ dnx web      
Hosting environment: Production
Now listening on: http://*:5004
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNet.Hosting.Internal.HostingEngine[1]
      Request starting HTTP/1.1 GET http://localhost:5004/  
info: Microsoft.AspNet.Mvc.Controllers.ControllerActionInvoker[1]
      Executing action method MvcSample.Web.HomeController.Index with arguments () - ModelState is Valid'

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 24 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@Eilon Can we close this bug? It seems to attract “me too” posts without being sure they are 100% related to the bug that was opened 6 months ago with no new updates from the original poster.

I suggest that people who have similar issue would need to reopen a new bug with their own repro steps.

/cc @davidfowl

@sec That worked for me - thanks. Built on OSX, run on Ubuntu 15.10, unless I do “export MONO_THREADS_PER_CPU=2000”, it just hangs. Am on Mono 4.2.1.

Using Mono 4.2.2, try this: export MONO_THREADS_PER_CPU=2000 Also on FreeBSD this helps: export MONO_MANAGED_WATCHER=yes