Skip to content

'dnx . kestrel' does not work. #726

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
danieldafoe opened this issue Jul 7, 2015 · 3 comments
Closed

'dnx . kestrel' does not work. #726

danieldafoe opened this issue Jul 7, 2015 · 3 comments

Comments

@danieldafoe
Copy link

Hey guys, so I've been trying frantically for the last couple nights to get up and running with DNX/DNVM, etc. I'm not having too much luck. I git cloned the repo here onto my desktop, changed into its directory, ran 'dnu restore' and then followed up with the launch command, but it always fails.

I would really appreciate any help you can offer. I can give any further clarification you may need.

Daniels-MacBook-Pro:home danieldafoe$ dnx . kestrel
System.InvalidOperationException: Unable to resolve project 'home' from /Users/danieldafoe/Desktop/home
  at Microsoft.Framework.Runtime.ApplicationHostContext..ctor (IServiceProvider serviceProvider, System.String projectDirectory, System.String packagesDirectory, System.String configuration, System.Runtime.Versioning.FrameworkName targetFramework, ICache cache, ICacheContextAccessor cacheContextAccessor, INamedCacheDependencyProvider namedCacheDependencyProvider, IAssemblyLoadContextFactory loadContextFactory, Boolean skipLockFileValidation) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.Runtime.DefaultHost.Initialize (Microsoft.Framework.Runtime.DefaultHostOptions options, IServiceProvider hostServices) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.Runtime.DefaultHost..ctor (Microsoft.Framework.Runtime.DefaultHostOptions options, IServiceProvider hostServices) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.ApplicationHost.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) [0x00000] in <filename unknown>:0 
  at dnx.host.Bootstrapper.RunAsync (System.Collections.Generic.List`1 args, IRuntimeEnvironment env) [0x00000] in <filename unknown>:0 
@danieldafoe
Copy link
Author

I'm dumb.

@keithelder
Copy link

Same error, what did you do to solve it?

@MihaMarkic
Copy link
Contributor

Just for the record. Most probably OP wasn't in the folder where project.json resides. It'd be nice if people would document their solutions...

ryanbrandenburg pushed a commit that referenced this issue Nov 26, 2018
…master

[automated] Merge branch 'release/2.2' => 'master'
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants