使用 VSCode、DNX 和 kestrel 运行第一个 ASP.NET 5 应用程序导致 IOException [英] Running first ASP.NET 5 application using VSCode, DNX and kestrel results in IOException

查看:27
本文介绍了使用 VSCode、DNX 和 kestrel 运行第一个 ASP.NET 5 应用程序导致 IOException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照 .为了修复它,请设置 MONO_MANAGED_WATCHER 环境变量:

导出 MONO_MANAGED_WATCHER=false

来源

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?

解决方案

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

export MONO_MANAGED_WATCHER=false

Source

这篇关于使用 VSCode、DNX 和 kestrel 运行第一个 ASP.NET 5 应用程序导致 IOException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆