hwschuur
hwschuur

Reputation: 1111

Running first ASP.NET 5 application using VSCode, DNX and kestrel results in IOException

Following the steps described in the Visual Studio Code documentation, running the final command dnx . kestrel via the Command Palette of VSCode on Mac OS X results in an IOException when visiting http://localhost:5001:

kqueue() FileSystemWatcher has reached the maximum nunmber of files to watch.

See the attached screenshot for the complete stacktrace. What could be wrong?enter image description here

Upvotes: 24

Views: 3099

Answers (1)

Kyle West
Kyle West

Reputation: 9118

It's a known mono bug. In order to fix it set the MONO_MANAGED_WATCHER environment variable:

export MONO_MANAGED_WATCHER=false

Source

Upvotes: 27

Related Questions