-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Brand new ASP.NET project: internal server error. #508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What version of Mono do you have ? There is a bug open for Mono on this https://bugzilla.xamarin.com/show_bug.cgi?id=28693. I think it might be fixed in the latest 4.0.1 but can you confirm your version ? |
It is that bug, and unfortunately it still occurs in 4.0.1 The fix is to to add this to your .bash_profile export MONO_MANAGED_WATCHER=disabled The bad thing is that it means you have to stop and restart the server to see even the smallest html change |
I hope this is fixed soon.. isn't it possible to increase the number of files to be watched? Since that is the error. EditAfter @barranger's temporary solution, I got the following error. It still is a newly created ASP.NET WebApp!
|
Set a higher limit for file descriptors open: ulimit -n NNN |
Same problem here as @TomSchillemans, also disabling MONO_MANAGED_WATCHER yields the same type load error. Tried @migueldeicaza solution with no luck. ulimit (without -n) returns unlimited as current limit, setting .n does nothing to it (at least in OSX). I´m stuck :-( |
@iceclow I had an issue with file limits with OmniSharp. This tut helped me properly setup ulimits http://docs.basho.com/riak/latest/ops/tuning/open-files-limit/#Mac-OS-X |
Thanks @jrock2004 tried those steps, without luck. After restarting the system my ulimt -n shows 999 (cause you cannot set it 65536), however the issue remains. Any thoughts? |
@jrock2004 is that setting working on Yosemite for you? I created the limit.maxfiles.plist and limit.maxproc.plist files but still get the same error. |
I'm facing the exact same issue on OSX 10.10.2 for a newly created
|
Same as @whiteboardmonk with the only difference is my being on 10.10.3. |
Same here with
|
This is a very annoying bug. Confirm it under OSX 10.10.3 with ulimit unlimited. |
Confirmed under OS X 10.10.3 with |
FWIW... I managed to get a pseudo-stable setup on my Mac OS X. Here's what I did:
Finally, instead of disabling the watcher I enabled it by also adding this to my
With all that in place I am currently running the latest DNX (1.0.0-beta5-11735 as of this post)
and a default
and an updated [snip]
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
{
// Setup configuration sources.
var configuration = new Configuration(appEnv.ApplicationBasePath)
[snip] and I have a fully working restore/build/run setup. Also, as long as I launch Visual Studio Code from the command line (or ensure my current mono version is 4.0.1 prior to launching) I have full statement completion/intellisense. |
Since this is linked over from Bug 28693 on Xamarin, I wanted to add some additional details on how I have been able to recreate. OS: OSX Yosemite 10.10.4 I can recreate the issue every time after I use Bower to install dependencies.
If I skip over the Bower install (using CDNs for my JS and CSS, for example), everything works fine. In addition, I can also recreate this bug if I run a Gulp task to watch for changes to files in my SASS folder. The task(s):
Just to be sure, I ran |
There's a solution that worked for me here: |
|
This issue is being closed because it has not been updated in 3 months. We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate. |
* adding windows event log * adding windows event log * fix a wrong bool variable * some updates * fix bad merge
We don't release the UserSecrets VSIX from this branch
I just created a new project on OS X with
yo aspnet
for a ASP.NET web application. I have randnvm upgrade && dnu restore
after which I randnx . kestrel
and the command responds withStarted!
.Not only does the project not run on port 5004, but on port 5001.
Also I'm getting this internal server error:
An unhandled exception occurred while processing the request.
The text was updated successfully, but these errors were encountered: