Skip to content

Your first Mac ASP.NET app tutorial problems #173

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

Closed
TravisTheTechie opened this issue Apr 30, 2015 · 8 comments
Closed

Your first Mac ASP.NET app tutorial problems #173

TravisTheTechie opened this issue Apr 30, 2015 · 8 comments

Comments

@TravisTheTechie
Copy link

  1. Says should use 1.0.0-beta4. Can't install beta4 from the feed... dnvm install 1.0.0-beta4 nor dnvm install 1.0.0-beta4 -u. (semi-related, where do I report that empty directories in ~/.dnx/runtimes for failed installs is annoying?)
  2. Screen shots don't match the current generator-aspnet options.
  3. Can't get the dnu commands to run from VS Code, but that might be an issue on my end. OmniSharp won't start up either and might be related. They do run from the command line, so good enough.
  4. Kestrel is already in the project.json
  5. Bug in the beta5 version of Kestrel, have to export MONO_MANAGED_WATCHER=false or eat all the file descriptors.
  6. Kestrel just reports TypeLoadException: Could not load type 'Microsoft.Framework.Runtime.ILibraryExport' from assembly 'Microsoft.Framework.Runtime.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. when I try to load a page after dnx . kestrel.
@davidfowl
Copy link
Member

Says should use 1.0.0-beta4. Can't install beta4 from the feed... dnvm install 1.0.0-beta4 nor dnvm install 1.0.0-beta4 -u. (semi-related, where do I report that empty directories in ~/.dnx/runtimes for failed installs is annoying?)

This should be fixed now. Installing beta4 should work /cc @glennc

Can't get the dnu commands to run from VS Code, but that might be an issue on my end. OmniSharp won't start up either and might be related. They do run from the command line, so good enough.

That is likely the problem. Omnisharp tells VSCode about the commands.

Bug in the beta5 version of Kestrel, have to export MONO_MANAGED_WATCHER=false or eat all the file descriptors.

Nothing to do with Kestrel. It's a mono issue likely caused by Razor view compilation.

Kestrel just reports TypeLoadException: Could not load type 'Microsoft.Framework.Runtime.ILibraryExport' from assembly 'Microsoft.Framework.Runtime.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. when I try to load a page after dnx . kestrel.

Sounds like you've mismatched beta4 and beta5 bits. They are incompatible.

@TravisTheTechie
Copy link
Author

So it sounds like not having beta4 is the source of all my issues.

$ brew update && brew upgrade
Already up-to-date.

$ dnvm list

Active Version              Runtime Arch Location             Alias
------ -------              ------- ---- --------             -----
  *    1.0.0-beta5-11657    mono         ~/.dnx/runtimes      default

$ dnvm install 1.0.0-beta4
Downloading dnx-mono.1.0.0-beta4 from https://nuget.org/api/v2
Download: https://nuget.org/api/v2/package/dnx-mono/1.0.0-beta4
######################################################################## 100.0%
\e[0;31mHTTP Error 301 fetching dnx-mono.1.0.0-beta4 from https://nuget.org/api/v2 \e[0m

$ rm -rf ~/.dnx/runtimes/dnx-mono.1.0.0-beta4
$ dnvm install -u 1.0.0-beta4
dnvm install -u 1.0.0-beta4
Downloading dnx-mono.1.0.0-beta4 from https://www.myget.org/F/aspnetvnext/api/v2
Download: https://www.myget.org/F/aspnetvnext/api/v2/package/dnx-mono/1.0.0-beta4
######################################################################## 100.0%
dnx-mono.1.0.0-beta4 was not found in repository https://www.myget.org/F/aspnetvnext/api/v2 
This is most likely caused by the feed not having the version that you typed. Check that you typed the right version and try again. Other possible causes are the feed doesn't have a DNX of the right name format or some other error caused a 404 on the server.

I also tried 1.0.0.0-beta4 per OmniSharp/generator-aspnet#149 (comment) without success.

How do I get beta4 then?

@TravisTheTechie
Copy link
Author

https://www.nuget.org/packages/dnx-mono/1.0.0-beta4 exits, so, dnvm install 1.0.0-beta4 should work, right?

$ dnvm install latest
Determining latest version
Error: Could not find latest version from feed https://nuget.org/api/v2

Maybe that's the issue, something with nuget?

@TravisTheTechie
Copy link
Author

Lame...

$ open https://nuget.org/api/v2/package/dnx-mono/1.0.0-beta4
# ... wait for download
$ dnvm install ~/Downloads/dnx-mono.1.0.0-beta4.nupkg -p
Installing to /Users/tsmith/.dnx/runtimes/dnx-mono.1.0.0-beta4
Adding /Users/tsmith/.dnx/runtimes/dnx-mono.1.0.0-beta4/bin to process PATH
Setting alias 'default' to 'dnx-mono.1.0.0-beta4'
$ dnu restore
# ...
$ dnx . kestrel

And poof web pages load now without error pages.

@davidfowl
Copy link
Member

Nothing wrong with NuGet. Try dnvm update-self aspnet/dnvm#235

@kelong
Copy link

kelong commented May 1, 2015

@TravisTheTechie still same error after installing manually.
ulimit -n
65536
ulimit -u
709
IOException: kqueue() FileSystemWatcher has reached the maximum nunmber of files to watch.
System.IO.KqueueMonitor.Add (System.String path, Boolean postEvents, System.Collections.Generic.List`1& fds) [0x00000] in , line 0
@davidfowl :
dnvm update-self aspnet/dnvm#235
~/.dnx/dnvm/dnvm.sh doesn't exist. This command assumes you have installed dnvm in the usual location and are trying to update it. If you want to use update-self then dnvm.sh should be sourced from ~/.dnx/dnvm

@TravisTheTechie
Copy link
Author

Does dnvm list show beta4 as the default and active one? You might need to dnvm use 1.0.0-beta4. Still running into the mono issue with kestrel would indicate you're still using beta5.

@kelong
Copy link

kelong commented May 1, 2015

@TravisTheTechie I have never installed beta5 version.
dnvm list

Active Version Runtime Arch Location Alias


  • 1.0.0-beta4 mono ~/.dnx/runtimes default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants