Oauth System.IO.FileNotFoundException:';Microsoft.Framework.ApplicationHost';

Oauth System.IO.FileNotFoundException:';Microsoft.Framework.ApplicationHost';,oauth,asp.net-core,Oauth,Asp.net Core,保存用户机密会在“Asp.Net 5 beta 7”中引发异常。具体来说,当我执行此语句时: user-secret set Authentication:Facebook:AppId 1234567890 出现以下异常: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Framework.ApplicationHost' or one of its dependencies. The sy

保存用户机密会在“Asp.Net 5 beta 7”中引发异常。具体来说,当我执行此语句时:

user-secret set Authentication:Facebook:AppId 1234567890
出现以下异常:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Framework.ApplicationHost' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Framework.ApplicationHost'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.Dnx.Runtime.Loader.LoadContext.Load(AssemblyName assemblyName)
at Microsoft.Dnx.Host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env, FrameworkName targetFramework)
at Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync(String[] args, FrameworkName targetFramework)
at Microsoft.Dnx.Host.RuntimeBootstrapper.Execute(String[] args, FrameworkName targetFramework)
这在
beta 6
中正常工作。有人知道为什么会发生此异常,以及我需要做什么来修复它吗?

有一个错误。卸载旧版本并安装新版本

旧行为:

dnu commands install SecretManager
dnu commands install Microsoft.Framework.SecretManager
新行为:

dnu commands install SecretManager
dnu commands install Microsoft.Framework.SecretManager