Skip to content
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

Error while running k web #111

Closed
knvpk opened this issue Aug 6, 2014 · 6 comments
Closed

Error while running k web #111

knvpk opened this issue Aug 6, 2014 · 6 comments

Comments

@knvpk
Copy link

knvpk commented Aug 6, 2014

Error while running "k web"

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. ---> System.Reflection.TargetInvocat
ionException: Exception has been thrown by the target of an invocation. ---> Sys
tem.Exception: Unable to locate project.json
   at Microsoft.Framework.Runtime.DefaultHost.Initialize(DefaultHostOptions opti
ons)
   at Microsoft.Framework.Runtime.DefaultHost..ctor(DefaultHostOptions options,
IServiceProvider hostProvider)
   at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments,
 Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Objec
t[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke
Attr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute(Assembly ass
embly, String[] args, IServiceProvider serviceProvider)
   at klr.host.Bootstrapper.Main(String[] args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments,
 Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Objec
t[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke
Attr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at klr.hosting.RuntimeBootstrapper.Execute(String[] args)
   at DomainManager.Main(Int32 argc, String[] argv)
@Praburaj
Copy link

Praburaj commented Aug 6, 2014

As the error states you need to run it in a folder that contains project.json. And the project.json should have a command named web defined in it.

@knvpk
Copy link
Author

knvpk commented Aug 6, 2014

I'm working on samples/Hellowebapp which is in repository and I'm sure that folder has project.json file and web command ....But it still not working and getting klr.exe stopped working error

@davidfowl
Copy link
Member

Can you show a screenshot of the directory you are in with the exception?

@knvpk
Copy link
Author

knvpk commented Aug 6, 2014

directory

this is the screenshot of my directory

@knvpk
Copy link
Author

knvpk commented Aug 6, 2014

Now I'm getting "Unable to locate System.Security.Claims " when using the command "kpm restore" in my command line

@Praburaj
Copy link

@pavankumar0440 - I'm unable to reproduce this issue with latest bits. Could you try this again and let us know?

natemcmaster pushed a commit that referenced this issue Oct 17, 2018
ryanbrandenburg pushed a commit that referenced this issue Nov 16, 2018
Bringing back build.cmd and makefile.shade since CI depends on them
ryanbrandenburg pushed a commit that referenced this issue Nov 21, 2018
- Started failing after dependencies.props update: aspnet/ServerTests@46e3c69
- Issue to un-skip: aspnet/ServerTests#110
ryanbrandenburg pushed a commit that referenced this issue Nov 21, 2018
- Started failing after dependencies.props update: aspnet/ServerTests@46e3c69
- Issue to un-skip: aspnet/ServerTests#110
natemcmaster pushed a commit that referenced this issue Nov 21, 2018
* Removing error message from CompilationErrorPage since it repeats
 individual errors.

 Fixes #111
@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