Closed GVX111 closed 9 years ago
Have you updated your dnx?
-----Original Message----- From: "gvx111" notifications@github.com Sent: 11/10/2015 14:32 To: "OrchardCMS/Brochard" Brochard@noreply.github.com Subject: [Brochard] Running error (#47)
Application startup exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Orchard.Logging.Console' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500) ---> Microsoft.Dnx.Compilation.CSharp.RoslynCompilationException: C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Web\Modules\Orchard.Logging.Console\LoggingInitiator.cs(1,17): DNX,Version=v4.5.1 error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Web\Modules\Orchard.Logging.Console\LoggingInitiator.cs(5,37): DNX,Version=v4.5.1 error CS0246: The type or namespace name 'ILoggingInitiator' could not be found (are you missing a using directive or an assembly reference?)
C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Web\Modules\Orchard.Logging.Console\LoggingInitiator.cs(6,32): DNX,Version=v4.5.1 error CS0246: The type or namespace name 'ILoggerFactory' could not be found (are you missing a using directive or an assembly reference?)
C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Web\Modules\Orchard.Logging.Console\LoggingInitiator.cs(7,38): DNX,Version=v4.5.1 error CS0103: The name 'LogLevel' does not exist in the current context
at Microsoft.Dnx.Compilation.CSharp.RoslynProjectReference.Load(AssemblyName assemblyName, IAssemblyLoadContext loadContext)
at Microsoft.Dnx.Compilation.CompilationEngine.LoadProject(Project project, FrameworkName targetFramework, String aspect, IAssemblyLoadContext loadContext, AssemblyName assemblyName)
at Orchard.Environment.Extensions.ExtensionAssemblyLoader.<>cDisplayClass8_0.b0(CacheContext cacheContext) in C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Environment.Extensions\ExtensionAssemblyLoader.cs:line 80
at Microsoft.Dnx.Compilation.Caching.CacheExtensions.<>cDisplayClass0_0`1.b0(CacheContext ctx)
at Microsoft.Dnx.Compilation.Caching.Cache.CreateEntry(Object k, Func2 acquire) at Microsoft.Dnx.Compilation.Caching.Cache.<>c__DisplayClass5_0.b__0() at System.Lazy
1.CreateValue()
at System.Lazy1.LazyInitValue() at Microsoft.Dnx.Compilation.Caching.Cache.Get(Object key, Func
2 factory)
at Microsoft.Dnx.Compilation.Caching.CacheExtensions.Get[T](ICache cache, Object key, Func2 factory) at Orchard.Environment.Extensions.ExtensionAssemblyLoader.Load(AssemblyName assemblyName) in C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Environment.Extensions\ExtensionAssemblyLoader.cs:line 39 at Microsoft.Dnx.Host.LoaderContainer.Load(AssemblyName assemblyName) at Microsoft.Dnx.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName name, Func
2 factory)
at Microsoft.Dnx.Runtime.Loader.LoadContext.ResolveAssembly(Object sender, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
--- End of inner exception stack trace ---
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 Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.Load(ExtensionDescriptor descriptor) in C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Environment.Extensions\Loaders\DynamicExtensionLoader.cs:line 70
at Orchard.Hosting.Extensions.LoggerFactoryExtensions.AddOrchardLogging(ILoggerFactory loggingFactory, IServiceProvider serviceProvider) in C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Hosting.Web\Extensions\LoggerFactoryExtensions.cs:line 24
at Orchard.Hosting.ApplicationBuilderExtensions.ConfigureWebHost(IApplicationBuilder builder, ILoggerFactory loggerFactory) in C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Hosting.Web\Extensions\ApplicationBuilderExtensions.cs:line 12
at Orchard.Web.Startup.Configure(IApplicationBuilder builder, ILoggerFactory loggerFactory, IOrchardHost orchardHost) in C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Web\Startup.cs:line 21
--- 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, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNet.Hosting.Startup.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNet.Hosting.Internal.HostingEngine.BuildApplication()
Hosting environment: Production
Now listening on: http://localhost:5001
Now listening on: http://localhost:5002
Application started. Press Ctrl+C to shut down.DNVM 1.0.0-rc1-15838 clr x64
—
Reply to this email directly or view it on GitHub.
Also, is this happening from Visual Studio?
No from cmd with admin permission. Yes i run dnvm upgrade -u
Okay, will check it out.
Hi Nicholas, can you please help? I also have problem while running Orchard. It runs fine when launching from command line. But when running from VS it produces the following exception:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.Dnx.Runtime.Common.DependencyInjection.ActivatorUtilities.<>cDisplayClass4_0.1.<Get>b__0(CacheContext ctx) at Microsoft.Dnx.Compilation.Caching.Cache.CreateEntry(Object k, Func
2 acquire)
at Microsoft.Dnx.Compilation.Caching.Cache.<>c__DisplayClass5_0.1.CreateValue() at System.Lazy
1.LazyInitValue()
at System.Lazy1.get_Value() at Microsoft.Dnx.Compilation.Caching.Cache.Get(Object key, Func
2 factory)
at Microsoft.Dnx.Compilation.Caching.CacheExtensions.Get[T](ICache cache, Object key, Func2 factory) at Microsoft.Dnx.Compilation.LibraryExporter.ExportProject(ProjectDescription project, String aspect) at Microsoft.Dnx.Compilation.LibraryExporter.GetExport(LibraryDescription library, String aspect) at Microsoft.Dnx.Compilation.LibraryExporter.GetAllExports(LibraryDescription root, String aspect, Func
2 include)
at Microsoft.Dnx.Compilation.LibraryExporter.GetAllExports(String name, String aspect, Func`2 libraryFilter)
at Microsoft.Dnx.Compilation.LibraryExporter.GetAllExports(String name, String aspect)
at Microsoft.Dnx.Compilation.LibraryExporter.GetAllExports(String name)
at Orchard.Environment.Extensions.ExtensionAssemblyLoader.<>c__DisplayClass8_0.
It thrown from var exports = exporter.GetAllExports(moduleContext.Project.Name); in ExtensionAssemblyLoader.
I have feeling that this is related issue. Dnx and packages are up to date (I ran build.cmd prior to launching from VS)
I have the same. Will take a look, the error I think is in the dnx somewhere.
-----Original Message----- From: "Maxim Tebenev" notifications@github.com Sent: 13/10/2015 05:59 To: "OrchardCMS/Brochard" Brochard@noreply.github.com Cc: "Nicholas Mayne" Jetski5822@gmail.com Subject: Re: [Brochard] Running error (#47)
Hi Nicholas, can you please help? I also have problem while running Orchard. It runs fine when launching from command line. But when running from VS it produces the following exception:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.Dnx.Runtime.Common.DependencyInjection.ActivatorUtilities.<>cDisplayClass4_0.b0(IServiceProvider services)
at Microsoft.Dnx.Runtime.Common.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider services, Type type)
at Microsoft.Dnx.Compilation.CompilationEngine.GetCompiler(TypeInformation provider, IAssemblyLoadContext loadContext)
at Microsoft.Dnx.Compilation.LibraryExporter.<>cDisplayClass17_0.b0(CacheContext ctx)
at Microsoft.Dnx.Compilation.Caching.CacheExtensions.<>cDisplayClass0_01.
Errors in f:\Code\asp.net\Brochard\src\Orchard.Web\project.json Unable to locate Dependency Microsoft.Dnx.Compilation.Abstractions >= 1.0.0- rc1-15879 Unable to locate Dependency Microsoft.Extensions.Primitives >= 1.0.0-rc1-157 40 Unable to locate Dependency Microsoft.AspNet.WebUtilities >= 1.0.0-rc1-15814
Unable to locate Dependency Microsoft.Net.Http.Headers >= 1.0.0-rc1-15814
Unable to locate Dependency Microsoft.Extensions.Logging >= 1.0.0-rc1-15690
Unable to locate Dependency Microsoft.Extensions.DependencyInjection >= 1.0.
0-rc1-15691 Unable to locate Dependency Microsoft.Extensions.Logging.Abstractions >= 1.0 .0-rc1-15690 Unable to locate Dependency Microsoft.AspNet.Mvc.Cors >= 6.0.0-rc1-16053 Unable to locate Dependency Microsoft.AspNet.Mvc.DataAnnotations >= 6.0.0-rc 1-16053 Unable to locate Dependency Microsoft.AspNet.Mvc.Formatters.Json >= 6.0.0-rc 1-16053 Unable to locate Dependency Microsoft.AspNet.Mvc.ViewFeatures >= 6.0.0-rc1-1 6053 Unable to locate Dependency Microsoft.AspNet.Mvc.Abstractions >= 6.0.0-rc1-1 6053 Unable to locate Dependency Microsoft.Extensions.MemoryPool >= 1.0.0-rc1-157 40 Unable to locate Dependency Microsoft.Extensions.Localization.Abstractions > = 1.0.0-rc1-15752 Unable to locate Dependency Microsoft.Dnx.Compilation.CSharp.Common >= 1.0.0 -rc1-15879 Unable to locate Dependency Microsoft.Dnx.Compilation.CSharp.Abstractions >= 1.0.0-rc1-15879 Unable to locate Dependency Microsoft.AspNet.Razor.Runtime >= 4.0.0-rc1-1576 4 Unable to locate Dependency Microsoft.AspNet.Razor.Runtime.Precompilation >= 4.0.0-rc1-15764
NuGet Config files used: C:\Users\Alex\AppData\Roaming\NuGet\nuget.config f:\Code\asp.net\Brochard\nuget.config
Feeds used: https://www.myget.org/F/aspnetcidev/api/v3/flatcontainer/ https://api.nuget.org/v3-flatcontainer/ https://www.myget.org/F/xunit/
f:\Code\asp.net\Brochard\src\Orchard.Web>dnx kestrel System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Exte nsions.Primitives, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Extensions.Primitives, Version=1.0.0.0, Culture=neutral, P ublicKeyToken=null' at Microsoft.AspNet.Hosting.HostingEnvironmentExtensions.Initialize(IHostingE nvironment hostingEnvironment, String applicationBasePath, String environmentNam e) at Microsoft.AspNet.Hosting.WebHostBuilder.Build() at Microsoft.AspNet.Hosting.Program.Main(String[] args) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider) at Microsoft.Dnx.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args) at Microsoft.Dnx.ApplicationHost.Program.Main(String[] args) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider) at Microsoft.Dnx.Host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env, String appBase, FrameworkName targetFramework) at Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync(String[] args, Bootstr apperContext bootstrapperContext) at Microsoft.Dnx.Host.RuntimeBootstrapper.Execute(String[] args, Bootstrapper Context bootstrapperContext)
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value HKLM\Software\M icrosoft\Fusion!EnableLog to 1. Note: There is some performance penalty associated with assembly bind failure lo gging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus ion!EnableLog].
Run on 1.0.0-rc1-15879 clr x86 win
Look like can`t update dependencies
@Codenator81 did you run bootstrap.cmd in admin mode?
So I run bootstrap.cmd in admin mode and finish without errors after that buil.cmd in admin mode and got errors
//......... same logs Using Package dependency System.Threading.Timer 4.0.1-beta-23409 Source: C:\Users\Alex.dnx\packages\System.Threading.Timer\4.0.1-beta-23409 File: ref\dotnet\System.Threading.Timer.dll
Using Package dependency System.Xml.ReaderWriter 4.0.11-beta-23409 Source: C:\Users\Alex.dnx\packages\System.Xml.ReaderWriter\4.0.11-beta-2340 9 File: ref\dotnet\System.Xml.ReaderWriter.dll
Using Package dependency System.Xml.XDocument 4.0.11-beta-23409 Source: C:\Users\Alex.dnx\packages\System.Xml.XDocument\4.0.11-beta-23409 File: ref\dotnet\System.Xml.XDocument.dll
Unable to resolve dependency Microsoft.Extensions.Logging 1.0.0-rc1-15690
Unable to resolve dependency Microsoft.Extensions.Primitives 1.0.0-rc1-15740
F:\Code\asp.net\Brochard\src\Orchard.Web\Modules\Orchard.Data.EntityFramework\pr oject.json(0,0): error NU1001: The dependency Microsoft.Extensions.Logging >= 1. 0.0-rc1-15690 could not be resolved. F:\Code\asp.net\Brochard\src\Orchard.Web\Modules\Orchard.Data.EntityFramework\pr oject.json(0,0): error NU1001: The dependency Microsoft.Extensions.Primitives >= 1.0.0-rc1-15740 could not be resolved.
Build failed. 0 Warning(s) 4 Error(s)
Time elapsed 00:00:01.4557611
Total build time elapsed: 00:00:01.4927951
Total projects built: 1
fail: Exit code 1 from cmd
fail: Stack trace:
at View9766314c527f45b99d226602bf6a9db3.Dnu(String command) in c:\Users\Alex\
AppData\Local\Temp\1298427301574c18af933850d35fc4e8-1.cs:line 477
at View9766314c527f45b99d226602bf6a9db3.DnuPack(String projectFile, String kp
mPackOutputDir, String configuration) in c:\Users\Alex\AppData\Local\Temp\129842
7301574c18af933850d35fc4e8-1.cs:line 2514
at View9766314c527f45b99d226602bf6a9db3.<>cDisplayClass126.<RenderViewLevel
0>bd7(String projectFile) in c:\Users\Alex\AppData\Local\Temp\1298427301574c18
af933850d35fc4e8-1.cs:line 10672
at System.Collections.Generic.List1.ForEach(Action
1 action)
at View9766314c527f45b99d226602bf6a9db3.<>cDisplayClass126.<RenderViewLevel
0>bd5() in c:\Users\Alex\AppData\Local\Temp\1298427301574c18af933850d35fc4e8-1
.cs:line 10672
at Sake.Engine.Builder.BuilderBase1.CallTarget(String name) at Sake.Engine.Builder.BuilderBase
1.StartingTarget(String name)
at View9766314c527f45b99d226602bf6a9db3.StartingTarget(String name) in c:\Use
rs\Alex\AppData\Local\Temp\1298427301574c18af933850d35fc4e8-1.cs:line 3719
at View9766314c527f45b99d226602bf6a9db3.1.CallTarget(String name) at Sake.Engine.Builder.BuilderBase
1.StartingTarget(String name)
at View9766314c527f45b99d226602bf6a9db3.StartingTarget(String name) in c:\Use
rs\Alex\AppData\Local\Temp\1298427301574c18af933850d35fc4e8-1.cs:line 3719
at View9766314c527f45b99d226602bf6a9db3.1.CallTarget(String name) at Sake.Engine.Builder.BuilderBase
1.StartingTarget(String name)
at View9766314c527f45b99d226602bf6a9db3.StartingTarget(String name) in c:\Use
rs\Alex\AppData\Local\Temp\1298427301574c18af933850d35fc4e8-1.cs:line 3719
at View9766314c527f45b99d226602bf6a9db3.
Adn try run:
F:\Code\asp.net\Brochard\src\Orchard.Web>dnx kestrel
info : [Orchard.Hosting.DefaultOrchardHost] Initialize Host
info : [Orchard.Hosting.DefaultOrchardHost] Start creation of shells
info : [Orchard.Environment.Extensions.Folders.ExtensionHarvester] Start look
ing for extensions in '~/Core/Orchard.Core'...
info : [Orchard.Environment.Extensions.Folders.ExtensionHarvester] Done looki
ng for extensions in '~/Core/Orchard.Core': Settings
info : [Orchard.Environment.Extensions.Folders.ExtensionHarvester] Start look
ing for extensions in '~/Modules'...
info : [Orchard.Environment.Extensions.Folders.ExtensionHarvester] Done looki
ng for extensions in '~/Modules': Orchard.Data.EntityFramework, Orchard.Demo, Or
chard.Logging.Console, Orchard.Setup
info : [Orchard.Environment.Extensions.ExtensionManager] Loading features
info : [Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader] Loaded
referenced extension "Console Logging": assembly name="Orchard.Logging.Console,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
error : [Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader] Error
trying to load extension Orchard.Setup
System.IO.FileLoadException: Could not load file or assembly 'Orchard.Setup' or
one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
File name: 'Orchard.Setup' ---> Microsoft.Dnx.Compilation.CSharp.RoslynCompilati
onException: F:\Code\asp.net\Brochard\src\Orchard.Web\Modules\Orchard.Setup\Cont
rollers\SetupController.cs(34,18): DNX,Version=v4.5.1 error CS0012: The type 'Mo
delStateDictionary' is defined in an assembly that is not referenced. You must a
dd a reference to assembly 'Microsoft.AspNet.Mvc.Abstractions, Version=6.0.0.0,
Culture=neutral, PublicKeyToken=null'.
at Microsoft.Dnx.Compilation.CSharp.RoslynProjectReference.Load(AssemblyName
assemblyName, IAssemblyLoadContext loadContext)
at Microsoft.Dnx.Compilation.CompilationEngine.LoadProject(Project project, F
rameworkName targetFramework, String aspect, IAssemblyLoadContext loadContext, A
ssemblyName assemblyName)
at Orchard.Environment.Extensions.ExtensionAssemblyLoader.<>cDisplayClass8_
0.2 acqui re) at Microsoft.Dnx.Compilation.Caching.Cache.<>c__DisplayClass5_0.<AddEntry>b__ 0() at System.Lazy
1.CreateValue()
at System.Lazy1.LazyInitValue() at Microsoft.Dnx.Compilation.Caching.Cache.Get(Object key, Func
2 factory)
at Microsoft.Dnx.Compilation.Caching.CacheExtensions.Get[T](ICache cache, Obj
ect key, Func2 factory) at Orchard.Environment.Extensions.ExtensionAssemblyLoader.Load(AssemblyName a ssemblyName) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Extensions\Exte nsionAssemblyLoader.cs:line 39 at Microsoft.Dnx.Host.LoaderContainer.Load(AssemblyName assemblyName) at Microsoft.Dnx.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName nam e, Func
2 factory)
at Microsoft.Dnx.Runtime.Loader.LoadContext.ResolveAssembly(Object sender, Re
solveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String a
ssemblyFullName)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod
eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&
stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntro
spection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName as
semblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMar
k& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIn
trospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.Load(Extensi
onDescriptor descriptor) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Ext
ensions\Loaders\DynamicExtensionLoader.cs:line 58
error : [Orchard.Environment.Extensions.ExtensionManager] Error loading extens
ion 'Orchard.Setup'
System.IO.FileLoadException: Could not load file or assembly 'Orchard.Setup' or
one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
File name: 'Orchard.Setup' ---> Microsoft.Dnx.Compilation.CSharp.RoslynCompilati
onException: F:\Code\asp.net\Brochard\src\Orchard.Web\Modules\Orchard.Setup\Cont
rollers\SetupController.cs(34,18): DNX,Version=v4.5.1 error CS0012: The type 'Mo
delStateDictionary' is defined in an assembly that is not referenced. You must a
dd a reference to assembly 'Microsoft.AspNet.Mvc.Abstractions, Version=6.0.0.0,
Culture=neutral, PublicKeyToken=null'.
at Microsoft.Dnx.Compilation.CSharp.RoslynProjectReference.Load(AssemblyName
assemblyName, IAssemblyLoadContext loadContext)
at Microsoft.Dnx.Compilation.CompilationEngine.LoadProject(Project project, F
rameworkName targetFramework, String aspect, IAssemblyLoadContext loadContext, A
ssemblyName assemblyName)
at Orchard.Environment.Extensions.ExtensionAssemblyLoader.<>cDisplayClass8_
0.2 acqui re) at Microsoft.Dnx.Compilation.Caching.Cache.<>c__DisplayClass5_0.<AddEntry>b__ 0() at System.Lazy
1.CreateValue()
at System.Lazy1.LazyInitValue() at Microsoft.Dnx.Compilation.Caching.Cache.Get(Object key, Func
2 factory)
at Microsoft.Dnx.Compilation.Caching.CacheExtensions.Get[T](ICache cache, Obj
ect key, Func2 factory) at Orchard.Environment.Extensions.ExtensionAssemblyLoader.Load(AssemblyName a ssemblyName) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Extensions\Exte nsionAssemblyLoader.cs:line 39 at Microsoft.Dnx.Host.LoaderContainer.Load(AssemblyName assemblyName) at Microsoft.Dnx.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName nam e, Func
2 factory)
at Microsoft.Dnx.Runtime.Loader.LoadContext.ResolveAssembly(Object sender, Re
solveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String a
ssemblyFullName)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod
eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&
stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntro
spection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName as
semblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMar
k& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIn
trospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.Load(Extensi
onDescriptor descriptor) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Ext
ensions\Loaders\DynamicExtensionLoader.cs:line 70
at Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescri
ptor descriptor) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Extensions\
ExtensionManager.cs:line 136
at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescrip
tor featureDescriptor) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Exten
sions\ExtensionManager.cs:line 95
Application startup exception: System.Reflection.TargetInvocationException: Exce
ption has been thrown by the target of an invocation. ---> System.ArgumentNullEx
ception: Value cannot be null.
Parameter name: name
at Microsoft.Extensions.Localization.LocalizedString..ctor(String name, Strin
g value, Boolean resourceNotFound)
at Orchard.Localization.NullLocalizer.<>c.<.cctor>b__0_0(String format, Objec
t[] args) in F:\Code\asp.net\Brochard\src\Orchard.Abstractions\Localization\Null
Localizer.cs:line 7
at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescrip
tor featureDescriptor) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Exten
sions\ExtensionManager.cs:line 99
at Orchard.Environment.Extensions.ExtensionManager.2.MoveNext() at System.Linq.Buffer
1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source)
at Orchard.Environment.Extensions.ExtensionManager.LoadFeatures(IEnumerable`1
featureDescriptors) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Extensi
ons\ExtensionManager.cs:line 80
at Orchard.Environment.Shell.Builders.CompositionStrategy.Compose(ShellSettin
gs settings, ShellDescriptor descriptor) in F:\Code\asp.net\Brochard\src\Orchard
.Environment.Shell\Builders\CompositionStrategy.cs:line 31
at Orchard.Environment.Shell.Builders.ShellContextFactory.Orchard.Environment
.Shell.Builders.IShellContextFactory.CreateSetupContext(ShellSettings settings)
in F:\Code\asp.net\Brochard\src\Orchard.Environment.Shell\Builders\ShellContextF
actory.cs:line 77
at Orchard.Hosting.DefaultOrchardHost.CreateSetupContext() in F:\Code\asp.net
\Brochard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 110
at Orchard.Hosting.DefaultOrchardHost.CreateAndActivateShells() in F:\Code\as
p.net\Brochard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 81
at Orchard.Hosting.DefaultOrchardHost.BuildCurrent() in F:\Code\asp.net\Broch
ard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 48
at Orchard.Hosting.DefaultOrchardHost.Orchard.Hosting.IOrchardHost.Initialize
() in F:\Code\asp.net\Brochard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 37
at Orchard.Web.Startup.Configure(IApplicationBuilder builder, ILoggerFactory
loggerFactory, IOrchardHost orchardHost) in F:\Code\asp.net\Brochard\src\Orchard
.Web\Startup.cs:line 23
--- 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 Microsoft.AspNet.Hosting.Startup.ConfigureBuilder.Invoke(Object instance,
IApplicationBuilder builder)
at Microsoft.AspNet.Hosting.Internal.HostingEngine.BuildApplication()
error : [Microsoft.AspNet.Hosting.Internal.HostingEngine] Application startup
exception
System.Reflection.TargetInvocationException: Exception has been thrown by the ta
rget of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: name
at Microsoft.Extensions.Localization.LocalizedString..ctor(String name, Strin
g value, Boolean resourceNotFound)
at Orchard.Localization.NullLocalizer.<>c.<.cctor>b__0_0(String format, Objec
t[] args) in F:\Code\asp.net\Brochard\src\Orchard.Abstractions\Localization\Null
Localizer.cs:line 7
at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescrip
tor featureDescriptor) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Exten
sions\ExtensionManager.cs:line 99
at Orchard.Environment.Extensions.ExtensionManager.2.MoveNext() at System.Linq.Buffer
1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source)
at Orchard.Environment.Extensions.ExtensionManager.LoadFeatures(IEnumerable`1
featureDescriptors) in F:\Code\asp.net\Brochard\src\Orchard.Environment.Extensi
ons\ExtensionManager.cs:line 80
at Orchard.Environment.Shell.Builders.CompositionStrategy.Compose(ShellSettin
gs settings, ShellDescriptor descriptor) in F:\Code\asp.net\Brochard\src\Orchard
.Environment.Shell\Builders\CompositionStrategy.cs:line 31
at Orchard.Environment.Shell.Builders.ShellContextFactory.Orchard.Environment
.Shell.Builders.IShellContextFactory.CreateSetupContext(ShellSettings settings)
in F:\Code\asp.net\Brochard\src\Orchard.Environment.Shell\Builders\ShellContextF
actory.cs:line 77
at Orchard.Hosting.DefaultOrchardHost.CreateSetupContext() in F:\Code\asp.net
\Brochard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 110
at Orchard.Hosting.DefaultOrchardHost.CreateAndActivateShells() in F:\Code\as
p.net\Brochard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 81
at Orchard.Hosting.DefaultOrchardHost.BuildCurrent() in F:\Code\asp.net\Broch
ard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 48
at Orchard.Hosting.DefaultOrchardHost.Orchard.Hosting.IOrchardHost.Initialize
() in F:\Code\asp.net\Brochard\src\Orchard.Hosting\DefaultOrchardHost.cs:line 37
at Orchard.Web.Startup.Configure(IApplicationBuilder builder, ILoggerFactory loggerFactory, IOrchardHost orchardHost) in F:\Code\asp.net\Brochard\src\Orchard .Web\Startup.cs:line 23 --- 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 Microsoft.AspNet.Hosting.Startup.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNet.Hosting.Internal.HostingEngine.BuildApplication() Hosting environment: Development Now listening on: http://localhost:5001 Now listening on: http://localhost:5002 Application started. Press Ctrl+C to shut down.
Okay, try this....
This just worked for me. I will see what I can do to fix this weirdness tonight.
Yes!!! Thanks !!! It helped ))) Same problem with dnx may be
I fixed. You must enter in modules folder and after you must enter in every modules and run dnu restore because bootstrap.cmd can't find project.json in Modules folder. @Jetski5822
DNVM 1.0.0-rc1-15838 clr x64