Code Monkey home page Code Monkey logo

orchardcms / orchardcore Goto Github PK

View Code? Open in Web Editor NEW
7.2K 332.0 2.3K 241.11 MB

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.

Home Page: https://orchardcore.net

License: BSD 3-Clause "New" or "Revised" License

C# 61.80% JavaScript 15.15% CSS 9.30% HTML 11.35% Liquid 0.29% TypeScript 0.27% Dockerfile 0.01% PHP 0.02% SCSS 1.47% Pug 0.36%
orchard-cms c-sharp dotnet-core cms modular orchardcore asp-net

orchardcore's People

Contributors

agriffard avatar alexbocharov avatar carlwoodhouse avatar deanmarcussen avatar dependabot[bot] avatar giannik avatar gvkries avatar hishamco avatar hyzx86 avatar infofromca avatar jetski5822 avatar jptissot avatar jtkech avatar kevinchalet avatar lahma avatar lampersky avatar lukaskabrt avatar matiasmolleja avatar michaelpetrinolis avatar microposmp avatar mikealhayek avatar netwavebe avatar ns8482e avatar petedavis avatar piedone avatar piemp avatar scleaver avatar sebastienros avatar skrypt avatar tfleury avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orchardcore's Issues

Running error

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.<>c__DisplayClass8_0.b__0(CacheContext cacheContext) in C:\Users\Givi\Desktop\Brochard-e9550ffb70f9a4af0a6b7d61d2bbd9daa301019e\src\Orchard.Environment.Extensions\ExtensionAssemblyLoader.cs:line 80
   at Microsoft.Dnx.Compilation.Caching.CacheExtensions.<>c__DisplayClass0_0`1.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.b__0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.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, Func`2 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

Sharing knowledge or experience

I apologize that I'm writing an off-topic message here. But I don't know how else I could get in touch with other developers who are experimenting with Brochard.
Although I'm not an expert on Orchard, but I'm familiar with it and have built an order management module and some other small modules with it for a customer of mine.

I would love to get in touch with others how are interested in Brochard too and want to share knowledge and give the core developers (Nick at this moment) feedback. Hopefully we would be able to give hem a helping hand in the future.

If you want to get in touch with other developers, please do not hesitate to write a message here or make your contact info public or leave your e-mail address to make it possible for the rest of us to contact you without polluting the 'issues' section of github.

If anyone has a better idea, please do not hesitate to share it here. It would be nice to find a better way to communicate with each other.

Dave

Investigate Micro ORM

Look in to Dapper and Massive as data access layers. How will the Content Manager API's functions talk to it? How can you surface the API's of the orm's themselves.

Can it work side by side with EF?

Virtual Path

@Url.Action doesn't work. also @Url.RouteUrl
VIrtualPath can not detect Controller and action.
Also doesn't work [Area] Attribute.

Accepting contributions?

Hi Nick,

Are you currently accepting contributions to Orchard vNext?

When I have time I'd like to help out but could do with some guidance on what tasks I could submit a pull request for.

Perhaps if there was a list of issues that followed the advice given here it would be easier for myself and others to help out?

The task list could be as simple as:

  • Migrate event bus [Beginner]
  • Migrate caching [Intermediate]
  • Implement localization [Bigger Project]
  • Implement security module [Bigger Project] [Question]
  • Shapes [Bigger Project]
  • Remove OrchardVNext naming [Beginner]
  • How to package the many framework modules [Bigger Project] [Question]

Running bug

PS D:\Repositories\Brochard\src\OrchardVNext.Web> dnx . web
Initialize Host
Host Initialized
LogLevel: Information, EventId: 0, State: Start, Exception: , Formatter: System.Func3[System.Object,System.Exception,System.String], LoggerName: Microsoft.Net.Http.Server.WebListener, Scope: LogLevel: Information, EventId: 0, State: Listening on prefix: http://local.orchardvnext.test1.com:80/, Exception: , Formatter: System.Func3[System.Object,System.Exception,System.String], LoggerName: Microsoft.Net.Http.Server.WebListener, Scope:
LogLevel: Error, EventId: 0, State: Start, Exception: Microsoft.Net.Http.Server.WebListenerException (0x80004005): The process cannot access the file because it is being used by another process
at Microsoft.Net.Http.Server.UrlPrefixCollection.RegisterPrefix(String uriPrefix, Int32 contextId)
at Microsoft.Net.Http.Server.UrlPrefixCollection.RegisterAllPrefixes()
at Microsoft.Net.Http.Server.WebListener.Start(), Formatter: System.Func3[System.Object,System.Exception,System.String], LoggerName: Microsoft.Net.Http.Server.WebListener, Scope: Microsoft.Net.Http.Server.WebListenerException (0x80004005): The process cannot access the file because it is being used by another process at Microsoft.Net.Http.Server.UrlPrefixCollection.RegisterPrefix(String uriPrefix, Int32 contextId) at Microsoft.Net.Http.Server.UrlPrefixCollection.RegisterAllPrefixes() at Microsoft.Net.Http.Server.WebListener.Start() at Microsoft.AspNet.Server.WebListener.MessagePump.Start(Func2 app)
at Microsoft.AspNet.Server.WebListener.ServerFactory.Start(IServerInformation server, Func2 app) at Microsoft.AspNet.Hosting.Internal.HostingEngine.Start() 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(List1 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)
PS D:\Repositories\Brochard\src\OrchardVNext.Web>

Rewrite Settings

Make Settings use the new IConfiguration classes in nicer way to allow other configuration files to do the same.

Multiple Content Stores require changes to Settings file

So, with Brochard allowing users to have more than one context store, that requires changes to the YAML markup in our Settings files.... so.... How does this look?

Name: Default
State: Running
DataProviders:
   - Name: EntityFramework-InMemory

   - Name: Dapper-SQL
     ConnectionString: <connectionstring> 
     TablePrefix: dp

   - Name: GitHub
RequestUrlHost: localhost:5001
RequestUrlPrefix: 

The connection string and table prefix being optional. Name Required.

Extra overloading Fetch methods using AsNoTracking()

What do you think of offering extra overloads for Fetch methods that use AsNoTracking in order to improve performance?

    public virtual IQueryable<T> FetchWithNoTracking(Expression<Func<T, bool>> predicate)
    {
        return Table.AsNoTracking().Where(predicate);
    }

Indeed in order to help devs to don't forget to use the most most optimal one I would use:

public virtual IQueryable<T> Fetch(Expression<Func<T, bool>> predicate)
        {
            return Table.AsNoTracking().Where(predicate);
        }

public virtual IQueryable<T> FetchWithTracking(Expression<Func<T, bool>> predicate) {
            return Table.Where(predicate);
        }

Problem is it is a breaking change, so to avoid unnoticed bad uses of the Fech method maybe it will be better to remove Fech method and only have FetchWithTracking and FetchWithNoTracking methods.

What do you think?

Query<TDocument> [Bug]

Can't create content.
Error in: EfContentQueryStore line 34 Method: Query

An exception of type 'System.NullReferenceException' occurred in EntityFramework.Core.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object.

InnerExceptionMessag: Message = "An attempt was made to use the model while it was being created. A DbContext instance cannot be used inside OnModelCreating in any way that makes use of the model that is being created."

HttpContext is null

In startup i want to get HttpContext but it is null.
Or @Jetski5822 give me hint how to get HttpContext which is not modifing. I want to take only first time.

services.AddModuleFolder("~/Core/Orchard.Core");
services.AddModuleFolder("~/Modules");
var ts = services.BuildServiceProvider().GetService();
ts.HttpContext is null

How create theme folder

How create theme folder for Demo View. I want add view search location folder Theme/{ThemeName}/Views
How can i configure it?

Why I can't run OrchardVNext.Demo.Home controller?

Hello I'm just starting with ASP.NET vNext so maybe I'm having more questions than is usual.

I'm at the commit 732852e (last one at entityframework branch).
I have created a wwwRoot folder within OrchardVNext.Web in order to run the app because if it doesn't exists I get an error. To create manually this folder is what is expected?
If I debug the solution as it is I get an "Unable to locate project.json" message within an Error page.
However I'm able to debug the app replacing IIS Express per web in Debug Target properties of OrchardVNext.Web project.

Problem is the app only runs when my url request is http://local.orchardvnext.test1.com or http://local.orchardvnext.test2.com but nothing happens if I request http://localhost:61562

The only way I've managed to make the solution work in response to a http://localhost request has been adding localhost without port to web command in project.json
--server.urls http://localhost;http://local.orchardvnext.test1.com;http://local.orchardvnext.test2.com
And removing the port from RequestUrlPrefix within App_Data\Sites\Default\settings.txt.

The point is when I call http://localhost/OrchardVNext.Demo/Home/Index middleware is run but Controller is never called.

Is it the normal behavior? I haven't managed to find why the controller doesn't work because everything looks fine. Any help?
Regarding what I have had to do for making work the solution, is it normal? I imagine the change in the port is because when I use web command instead of IIS Express Visual Studio it is ignoring the port for debugging . But are you able to debug it with IIS Express?

Error on run

When i Running .Web getting some errors.

Could not load file or assembly 'OrchardVNext.Setup' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))

also same error on OrchardVNext.Demo
Both solution exiting in Modules folder

Implement Dapper

Now that Dapper has CoreCLR support, it would be work implementing it as a IContentStore

Dependencies should have min version number in schema

At the moment when you add a project, you compile everything and load it...

Lets say Project A have a version of 1.0.0.0 and Project B has a version of 2.0.0.0 and a dependency on Project A version 1.5.0.0, both will get built and then fall over.

What should happen is that Project B should not compile, and report a error in the log.

Running error

I made dnvm upgrade -u than dnu restore and there are some erros. dnx versions


   1.0.0-beta4       clr     x86          C:\Users\Givi\.dnx\runtimes
   1.0.0-beta5       clr     x64          C:\Users\Givi\.dnx\runtimes
   1.0.0-beta5       clr     x86          C:\Users\Givi\.dnx\runtimes
   1.0.0-beta5       coreclr x64          C:\Users\Givi\.dnx\runtimes
   1.0.0-beta5       coreclr x86          C:\Users\Givi\.dnx\runtimes
   1.0.0-beta7-12264 clr     x86          C:\Users\Givi\.dnx\runtimes
   1.0.0-beta7-12274 clr     x64          C:\Users\Givi\.dnx\runtimes
  • 1.0.0-beta7-12274 clr x86 C:\Users\Givi.dnx\runtimes de...

Error

dnx . web
System.IO.FileLoadException: Could not load file or assembly 'OrchardVNext, Vers
ion=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. G
eneral Exception (Exception from HRESULT: 0x80131500)
File name: 'OrchardVNext, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'
---> Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException: C:\Users\Gi
vi\Desktop\Brochard-Autofac-test\Brochard-master\src\OrchardVNext\Environment\De
faultAssemblyLoader.cs(68,55): DNX,Version=v4.5.1 error CS1501: No overload for
method 'GetExportsRecursive' takes 5 arguments
at Microsoft.Framework.Runtime.Roslyn.RoslynProjectReference.Load(IAssemblyLo
adContext loadContext)
at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName
assemblyName, IAssemblyLoadContext loadContext)
at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName
assemblyName)
at dnx.host.LoaderContainer.Load(AssemblyName assemblyName)
at dnx.host.DefaultLoadContext.LoadAssembly(AssemblyName assemblyName)
at Microsoft.Framework.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyNa
me name, Func2 factory) at Microsoft.Framework.Runtime.Loader.LoadContext.LoadAssemblyImpl(AssemblyNa me assemblyName) at Microsoft.Framework.Runtime.Loader.LoadContext.TryLoadAssembly(LoadContext context, AssemblyName assemblyName, Assembly& assembly) at Microsoft.Framework.Runtime.Loader.LoadContext.ResolveAssembly(Object send er, ResolveEventArgs args) at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String a ssemblyFullName) at OrchardVNext.Web.Startup.ConfigureServices(IServiceCollection services) Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException: C:\Users\Givi\Des ktop\Brochard-Autofac-test\Brochard-master\src\OrchardVNext\Environment\DefaultA ssemblyLoader.cs(68,55): DNX,Version=v4.5.1 error CS1501: No overload for method 'GetExportsRecursive' takes 5 arguments at Microsoft.Framework.Runtime.Roslyn.RoslynProjectReference.Load(IAssemblyLo adContext loadContext) at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName assemblyName, IAssemblyLoadContext loadContext) at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName assemblyName) at dnx.host.LoaderContainer.Load(AssemblyName assemblyName) at dnx.host.DefaultLoadContext.LoadAssembly(AssemblyName assemblyName) at Microsoft.Framework.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyNa me name, Func2 factory)
at Microsoft.Framework.Runtime.Loader.LoadContext.LoadAssemblyImpl(AssemblyNa
me assemblyName)
at Microsoft.Framework.Runtime.Loader.LoadContext.TryLoadAssembly(LoadContext
context, AssemblyName assemblyName, Assembly& assembly)
at Microsoft.Framework.Runtime.Loader.LoadContext.ResolveAssembly(Object send
er, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String a
ssemblyFullName)

Compilation error

can not build and run.
DNX 1.0.0-beta7-12290

D:\My Projects\Brochard\src\OrchardVNext\Mvc\Razor\DefaultRoslynCompilationServi
ce.cs(150,45): DNX,Version=v4.5.1 error CS1503: Argument 1: cannot convert from
'System.Collections.Generic.List' to 'System.Collections.Generic.IEnumerable'
   at Microsoft.Dnx.Compilation.CSharp.RoslynProjectReference.Load(IAssemblyLoad
Context loadContext)
   at Microsoft.Dnx.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName assem
blyName, IAssemblyLoadContext loadContext)
   at Microsoft.Dnx.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName assem
blyName)
   at Microsoft.Dnx.Host.LoaderContainer.Load(AssemblyName assemblyName)
   at Microsoft.Dnx.Host.DefaultLoadContext.LoadAssembly(AssemblyName assemblyNa
me)
   at Microsoft.Dnx.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName nam
e, Func`2 factory)
   at Microsoft.Dnx.Runtime.Loader.LoadContext.LoadAssemblyImpl(AssemblyName ass
emblyName)
   at Microsoft.Dnx.Runtime.Loader.LoadContext.TryLoadAssembly(LoadContext conte
xt, AssemblyName assemblyName, Assembly& assembly)
   at Microsoft.Dnx.Runtime.Loader.LoadContext.ResolveAssembly(Object sender, Re
solveEventArgs args)
   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String a
ssemblyFullName)

Render View (UTF-8 Encode)

Problem signature:
  Problem Event Name:   CLR20r3
  Problem Signature 01: dnx.exe
  Problem Signature 02: 1.0.0.11001
  Problem Signature 03: 560db74d
  Problem Signature 04: Microsoft.Extensions.MemoryPool
  Problem Signature 05: 1.0.0.11003
  Problem Signature 06: 56106640
  Problem Signature 07: 12
  Problem Signature 08: 28
  Problem Signature 09: System.InvalidOperationException
  OS Version:   6.3.9600.2.0.0.256.48
  Locale ID:    1033
  Additional Information 1: 5861
  Additional Information 2: 5861822e1919d7c014bbb064c64908b2
  Additional Information 3: a10f
  Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=280262

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

@Jetski5822 problem solved it was problem of buffer. Please close.

Split framework in to individual nuget packages

At the moment the framework is this big monolithic package. I think it should be split up, still have a framework package to pull things together, but things like DI, MVC, etc could be packaged off.

DNX React. [Bug]

System.InvalidOperationException: This application requires DNX version 1.0.0-be
ta8-15665 or newer to run.

How unload extension, module

IExtensionManager has only

AvailableExtensions
AvailableFeatures
GetExtension
LoadFeatures
EnabledFeatures

How can i disable modules?

IModule [Question]

How can i use IHostingEnvironment; I have class like this:

 public class RegisterServices : IModule
    {
        public void Configure(IServiceCollection serviceCollection)
        {
            serviceCollection.AddScoped< IAdminAreaRegister, AdminAreaRegister >();
            serviceCollection.AddScoped< IAuctionRepository, AuctionRepository >();
            var t = serviceCollection.BuildServiceProvider().GetService < IHostingEnvironment > ();
        }
    }

but t is null. Can not take IHostEnvironment.

Raise event for custom class

  1. adding in IEventBus
 public interface IEventBus : IDependency {
        IEnumerable Notify(string messageName, IDictionary< string, object > eventData);
        IEnumerable Notify(string type, string messageName, IDictionary< string, object> eventData);
    }
  1. Add in IEventNotifier
public interface IEventNotifier {
        object Notify< TEventHandler >(Expression< Action < TEventHandler >> eventNotifier) where TEventHandler : IEventHandler;
        object Notify< TEventHandler >(string type, Expression< Action < TEventHandler> > eventNotifier) where TEventHandler : IEventHandler;

    }
  1. Add in DefaultOrchardEventNotifier
  public object Notify< TEventHandler >(string type, Expression< Action< TEventHandle r> > eventNotifier) where TEventHandler : IEventHandler
        {
            var expression = GetExpression(eventNotifier);

            var interfaceName = expression.Method.DeclaringType.Name;
            var methodName = expression.Method.Name;

            var data = expression.Method.GetParameters()
                .Select((parameter, index) => new { parameter.Name, Value = GetValue(parameter, expression.Arguments[index]) })
                .ToDictionary(kv => kv.Name, kv => kv.Value);

            var results = _eventBus.Notify(type, interfaceName + "." + methodName, data);

            return Adjust(results, expression.Method.ReturnType);
        }
  1. Change in DefaultOrchardEventBus
 
private IEnumerable< object > NotifyHandlers(string messageName, IDictionary< string, object > eventData) 
to
 private IEnumerable< object> NotifyHandlers(string messageName, IDictionary< string, object > eventData, string type ="")
  1. change in DefaultOrchardEventBus in method NotifyHandlers
var eventHandlers = _eventHandlers[interfaceName];
to 
  var eventHandlers = (!string.IsNullOrEmpty(type) ? _eventHandlers[interfaceName].Where(e => e.GetType().Name == type) : _eventHandlers[interfaceName]);

Testing
_eventNotifier.Notify< IPlugin >(pluginType, e => e.Submit(_shell.SiteId, ActionContext, new PluginSettings()))

Different Module locations

Maybe a little bit early but one of the biggest things I miss in Orchard currently is to specify different module directories. I know the problem is that every module is a mvc area and they need this structure but maybe you can bear it in mind :).

Question on using EF and IdentityFramework

Hi, I was wondering if you are planning to use Entity Framework and ASP.NET Identity Framework for this vNext Orchard? In the original Orchard there was no easy way to convert an existing website to an Orchard site. I at least expected that there was a module that could wrap an existing website and enable it as a feature that could be displayed in the Orchard site. I want to suggest to have this in mind when designing Brochard. Use of Identity Framework especially will make it straightforward to bring existing Users and Roles from an existing web project, and keep it compatible with existing Identity Managers that implement Id Framework interfaces.

Thanks!

Change IoC

The current IoC container we use is limiting in it's features, i.e. it doesnt support Lazy<> and wont.

So, look to implement Autofac or DryIoC

Question about Area

I Create new module and i want to route all controller like {area}/{controller}/{action} where {area} default is admin. but when i make this route for this module doesnt working. I tried to add controller attribute area and also Route but result was blank page.
How can i make custom route for module.

Use of Context.SaveChanges() in Create() method of EF Repository

Related to Create(T entity) method within EF repository to what extend is useful to use Context.SaveChanges() within Create method?
I mean, I understand you use it for having available for next queries the entitity you just added. But it is an expesive price for having this commodity. In your opinion is this commodity really a need?
I mean in Orchard 1.8 the current code that consumes Repository really harness this commodity?
How much code? Can you point me an example? Will it be difficult to change that code that adds and consumes data to delegate on it the decission of when to call context.SaveChanges()?

Building Brochard on OSX?

Dear Orchard/Brochard devs.
Thank you for some amazing work in porting this CMS to the new ASP.net v5.
I am having issues building this on OSX though.

It seems that you are building against the latest available beta5 bits from the unstable feed. So I am using the beta5-11744 mono build of the DNX. However, after succesfully restoring packages using "dnu restore", I am getting errors complaining the IApplicationBuilder and IServiceCollection classes (referenced in the Startup.cs file) couldn't be found, when I run the "dnx . kestrel" command (this is after adding a kestrel command to the project.json).

Do you have any clues on how to get this building on OSX? Or should I be using an older build of beta5?

IEventNotifier [Bug]

I have return type of method string and making exception:
Exception MSG:

An exception of type 'System.InvalidOperationException' occurred in System.Core.dll but was not handled in user code

Additional information: Sequence contains no elements

File: DefaultOrchardEventNotifier
Method: GetGenericMethod
Parameters:
Type = {Name = "Enumerable" FullName = "System.Linq.Enumerable"}
name = OfType
genericArgTypes = {System.Type[0]}
argTypes[1] = {Name = "IEnumerable" FullName = "System.Collections.IEnumerable"} at 0 index
returnType = {Name = "IEnumerable1" FullName = "System.Collections.Generic.IEnumerable1"}

Todo List...

So I have been running on Trello for a while, but it seems people would prefer a todo list to be here, which makes sense. So here we are. I haven't included everything I have done so far....

Source code management and conventions

  • Migrate to Allman brace styling to comply with Microsoft conventions

Data

  • Recipes (Currently Working on)
  • Migrations pipeline
  • New content type system
  • Add DB Choice to Setup
  • Map Reduce API
  • Content Stores
    • InMemory
    • Sql
    • Memory Mapped file (Lightning.NET)
    • Flat file
    • Cache
    • Distributed cache

Content Management

  • Shrink IContentManager and make methods ASync
  • Split the manager

UI

  • Themes
  • Layouts
  • Admin UI
  • Shapes

Caching

Packaging

Tooling

  • Command-line tooling
  • Setup (Partial)
  • Host Config file

Localization

  • Create abstraction https://github.com/aspnet/localization
  • App Localization (of admin panel, modules, themes)
  • Content Localization (multi-lingual sites)
  • T-strings
    • Make T() available for views
    • Migrate all strings to T-strings

Events

  • Event Bus
  • Event model (a.k.a. plugins)
  • IEventHandler
  • Migrate to use CoreFx Observer/Observable pattern

Logging

  • Logging abstraction
  • Console logging provider
  • Configuration from Host Config

Indexing

  • Query Storage Changes (Eager Indexing)

Framework

  • Work Context
  • Migrate unit tests
  • Extensibility of Module Folders
  • Extensions
    • Load
    • Unload
  • Rewrite file system access using https://github.com/aspnet/FileSystem (currently working on)
  • Add folder monitoring to dynamic extension loader (Easy One)
  • Sort out framework namespaces (Easy One)
  • Add "tags": [ "" ], "projectUrl": "", "licenseUrl": "", to all project.json files with relevant information
  • Add Autofac to deal out Request Services

Configuration

  • Make ShellSettingsManager use IOptions for the FileName and Path to Tenants (Easy One)
  • Set environment when starting application (Easy One)

Nice to have if someone wants to give it a go (but not a priority)

Data

  • Dapper content store module
  • Github content store module

IoC

  • DryIoc (When CoreClr Compliant)

Packaging

  • Theme packaging
  • Module packaging

EventBus

  • Migrate to use CoreFx Observer/Observable pattern

Indexing

Caching

Security

  • SSL
  • CORS middleware

todo using c# 6 features

I think we should make use of the new features of c# 6 where possible, to make the code cleaner and more readable.

  • convert string.format to string interpolation
  • use expression body

Bug View not found

I use Brochard autofac.
Bug: System.InvalidOperationException: The view 'Index' was not found. The following
locations were searched:

Bug

error : [Microsoft.AspNet.Server.WebListener.MessagePump] ProcessRequestAsync
System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNet.Routing.IRouteBuilder' while attempting to activate 'OrchardVNext.Hosting.Web.Routing.Routes.RoutePublisher'.
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service.PopulateCallSites(ServiceProvider provider, ISet1 callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound) at Microsoft.Framework.DependencyInjection.ServiceLookup.Service.CreateCallSite(ServiceProvider provider, ISet1 callSiteChain)
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetResolveCallSite(IService service, ISet1 callSiteChain) at Microsoft.Framework.DependencyInjection.ServiceProvider.GetServiceCallSite(Type serviceType, ISet1 callSiteChain)
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service.PopulateCallSites(ServiceProvider provider, ISet1 callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound) at Microsoft.Framework.DependencyInjection.ServiceLookup.Service.CreateCallSite(ServiceProvider provider, ISet1 callSiteChain)
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetResolveCallSite(IService service, ISet1 callSiteChain) at Microsoft.Framework.DependencyInjection.ServiceProvider.GetServiceCallSite(Type serviceType, ISet1 callSiteChain)
at Microsoft.Framework.DependencyInjection.ServiceProvider.b__7_0(Type key)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at OrchardVNext.Hosting.ShellBuilders.ShellContainerFactory.WrappingServiceProvider.GetService(Type serviceType) in D:\My Projects\ITN.TravelSoftware\ITN.TS.Framework\src\OrchardVNext.Hosting\ShellBuilders\ShellContainerFactory.cs:line 114
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetService[T](IServiceProvider provider)
at OrchardVNext.Hosting.ShellBuilders.ShellContextFactory.OrchardVNext.Hosting.ShellBuilders.IShellContextFactory.CreateSetupContext(ShellSettings settings) in D:\My Projects\ITN.TravelSoftware\ITN.TS.Framework\src\OrchardVNext.Hosting\ShellBuilders\ShellContextFactory.cs:line 90
at OrchardVNext.Hosting.DefaultOrchardHost.CreateShellContext(ShellSettings settings) in D:\My Projects\ITN.TravelSoftware\ITN.TS.Framework\src\OrchardVNext.Hosting\DefaultOrchardHost.cs:line 36
at OrchardVNext.Hosting.OrchardContainerMiddleware.d__10.MoveNext() in D:\My Projects\ITN.TravelSoftware\ITN.TS.Framework\src\OrchardVNext.Hosting.Web\OrchardContainerMiddleware.cs:line 86
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNet.Hosting.Internal.RequestServicesContainerMiddleware.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNet.Hosting.Internal.HostingEngine.<>c__DisplayClass29_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNet.Server.WebListener.MessagePump.d__23.MoveNext()

Dependency resolution in middlewares doesn't work as of ecdfd16

Running latest version in master (ecdfd16) from VS CTP 5 using k web results in a NRE inOrchardShellHostMiddleware. ShellSettings doesn't seem to be registered anywhere.
I tried to fix it, but it did more harm than good.

Similar problem in OrchardRouterMiddleware. IRouteBuilder is registered in ShellContainerFactory, but ShellContainerFactory.CreateContainer([...]) isn't called yet when the middleware is executed.

Environment: VS CTP 5, 1.0.0-beta3-10921 CLR x86

Plug in a real logger.

At the moment we have just a static console logger called FakeLogger. Lets get a real one in there and allow it to be easily swap-able.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.