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

Running "k" in a folder without a web/desktop app throws an unhandled exception #42

Closed
clintkolodziej opened this issue May 21, 2014 · 2 comments

Comments

@clintkolodziej
Copy link

I accidentally ran k from the wrong folder, without a desktop or web application, and it got an unhandled exception, probably needs some error handling for that case.

C:\Users\Clint>k

Loaded Module: klr.net45.dll
Found DLL Export: CallApplicationMain
klr.exe Information: 0 : RootHost.Load name=Microsoft.Framework.ApplicationHost
klr.exe Information: 0 : RootHost Assembly.LoadFile(C:\Users\Clint\.kre\packages
\KRE-svr50-x86.0.1-alpha-build-0446\bin\Microsoft.Framework.ApplicationHost.dll)

klr.exe Information: 0 : RootHost.Load name=Microsoft.Framework.Runtime
klr.exe Information: 0 : RootHost Assembly.LoadFile(C:\Users\Clint\.kre\packages
\KRE-svr50-x86.0.1-alpha-build-0446\bin\Microsoft.Framework.Runtime.dll)
klr.exe Information: 0 : RootHost.Load name=Newtonsoft.Json
klr.exe Information: 0 : RootHost Assembly.LoadFile(C:\Users\Clint\.kre\packages
\KRE-svr50-x86.0.1-alpha-build-0446\bin\Newtonsoft.Json.dll)

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)
@davidfowl
Copy link
Member

Already a PR out for this aspnet/dnx#205

@clintkolodziej
Copy link
Author

Ok, thanks, didn't notice that one, I'll check it out.

ryanbrandenburg pushed a commit that referenced this issue Nov 19, 2018
- Required to unblock Preview1 build
- Suspected fix is to react to aspnet/Hosting@3936bf6
- Unskip: aspnet/AzureIntegration#41
ryanbrandenburg pushed a commit that referenced this issue Nov 19, 2018
- Required to unblock Preview1 build
- Suspected fix is to react to aspnet/Hosting@3936bf6
- Unskip: aspnet/AzureIntegration#41
ryanbrandenburg pushed a commit that referenced this issue Nov 19, 2018
…#42)

* Add some cookie tests

* Add more functional tests

Cookes + PathSchemeSelection + DynamicScheme tests
@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

2 participants