Giter Site home page Giter Site logo

orchardcms / orchardcore.samples Goto Github PK

View Code? Open in Web Editor NEW
371.0 28.0 126.0 1017 KB

Modules and Multi-Tenancy in ASP.NET samples using the Orchard Core framework

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

C# 52.91% HTML 44.54% CSS 1.12% JavaScript 1.43%

orchardcore.samples's Introduction

Orchard Core Framework Samples

Sample web applications demonstrating how to build a Modular and Multi-Tenant ASP.NET Core application using the Orchard Core Framework.

You can watch a video providing a step by step demonstration of building a modular, multi-tenant Orchard Core Framework application here https://www.youtube.com/watch?v=yrQaKv2mxFU&list=PLReL099Y5nRd04p81Q7p5TtyjCrj9tz1t. It was presented at .NET Conf 2019 using Orchard Core RC1. The names of the C# projects in the demo do not match these sample projects, but the demonstration is very similar to these samples.

Contents of the Solution

MultiTenantApplication

An ASP.NET Core MVC application that references the modules projects, and provides two tenants with different modules enabled.

The homepage of this web application provides more information, and links to the two tenants and module endpoints. The tenants and their features are configured in the "OrchardCore" section of the appsettings.json file.

ModularApplication

A simple ASP.NET Core application that references the modules.

DashboardApplication

An ASP.NET Core MVC application with Orchard Admin UI that references the modules projects.

The application has minimal features and dependencies. There are users, roles and features management in admin UI. The sample contains a customizable minimal setup recipe.

Module1

A sample module containing ASP.NET Core MVC controllers, views, and pages.

Module2

A sample module that registers custom middleware.

Running

From Visual Studio 2022

Open the OrchardCore.Samples.sln solution file and run either application and visit its homepage (any project with a name ending in "Application").

Open the website in your browser, and use the URLs or links it provides to explore.

From the Command Line

Open either Web application folder, ModularApplication or MultiTenantApplication, then run these commands:

  • dotnet restore
  • dotnet build
  • dotnet run

Multi-Tenant

The non-default tenants are prefixed with /customer-a and /customer-b. For instance, accessing /customer-b/Module2/hello will invoke the middleware defined in Module2.

The tenants can be modified by editing the "OrchardCore" section of the appsettings.json file and restarting the application.

Note that tenants.json is no longer supported in Orchard Core Framework applications, and tenant information is read from the "OrchardCore" section provided by any of the configuration providers. In the MultiTenantApplication sample, the appsettings.json is used to configure the "OrchardCore" section.

Creating new Modules

Modules can be .NET Standard 2.0 class libraries or .NET Core 3.0 class libraries that reference the OrchardCore.Module.Targets Nuget Package.

If you need it, development Orchard Core Nuget packages are available in a MyGet feed at this url: https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json

Optionally, modules can be packaged as Nuget packages and made available on Nuget or MyGet, including static files and views. The Orchard Core CMS builds upon the Orchard Core Framework. More examples of modules can be found for the Orchard Core CMS in this repository: https://github.com/OrchardCMS/OrchardCore

Creating New Modular or Multi-Tenant Applications

A modular application that hosts module only needs to reference one of these targets packages:

  • OrchardCore.Application.Targets: Allows the application to reference and import modules, and optionally use multi-tenancy.
  • OrchardCore.Application.Mvc.Targets: Same as OrchardCore.Application.Targets but also references the OrchardCore.Mvc module
  • OrchardCore.Application.Nancy.Targets: Same as OrchardCore.Application.Targets but also references the OrchardCore.Nancy module

orchardcore.samples's People

Contributors

agriffard avatar danroth27 avatar jeremycook avatar mikealhayek 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

orchardcore.samples's Issues

Are modules supported on an existing MVC app

Is it possible to use the UseModules() with an existing MVC app? I'd like to keep the existing aspnet core 2.0 mvc app and extend it further with new modules

I was hoping it would be possible to use
app.UseModules(); in the Startup.cs, I am not sure whether to keep the app.UseMvc like this:

app.UseModules();
app.UseMvc(routes => {
		routes.MapRoute(
			name: "default",
			template: "{controller=Home}/{action=Index}/{id?}");
	});

I tried with and without the app.UseMvc but it both cases doesn't seem to use the existing routes anymore. It only seems to find the Controllers / actions which have a route attribute in the existing mvc project and not the other controllers within the existing mvc project.

I am using OrchardCore.Application.Mvc.Targets from nuget 1.0.0-beta1-3667.

Is this supposed to be a supported scenario at all?

ApplicationInsight issues

When creating a new project from VS 2015.4 which has new templates, we need to add
services.AddSingleton(JavaScriptEncoder.Default); or the service will be missing.

How to use the controllers and views in a multi-tenant application

The sample multi-tenancy project (MultiTenantApplication.csproj) works fine with razor pages but how should we enable controllers and views?
Trying to add them by adding

builder.Services.AddControllersWithViews();
...
app.MapDefaultControllerRoute();

results in the error:

ArgumentException: Value cannot be null or empty. (Parameter 'areaName')

if instead of MapDefaultControllerRoute() I use endpoints like this:

app.UseEndpoints(endpoints =>
{
    endpoints.MapControllerRoute("MyDefaultRoute", "{controller=Home}/{action=Index}");
});

It works fine, but when I want to use DI to inject shell settings as in the razor pages sample in the index view

@inject ShellSettings settings

And use constructor injection

    public class MessageController : Controller
    {
        private readonly ShellSettings _settings;
        public MessageController(ShellSettings settings)
        {
            _settings = settings;
        }
   }

I get the error:

InvalidOperationException: Unable to resolve service for type 'OrchardCore.Environment.Shell.ShellSettings' while attempting to activate 'MultiTenantApplication.Controllers.MessageController'.

Add dev branch

Could it be possible to add a "dev" branch in this repository with NuGet.config pointing to nightly builds.

Getting the list of available modules in the solution

I wonder if it is possible to get the list of all available modules in the solution using some API in the OrchardCore. If it is, please let me know where the right documentation can be found. In order to do so, I have already set up a logic, but i think it will be great if we could use some API in OrchardCore.
Thanks for your awesome framework. It is really great!

AddModules is do not difine

hello:
my project behind update package OrchardCore.Application.Mvc.Targets beta1.0 to 3.0
the project is error
below the code
public static class ModularApplicationBuilderExtensions
{
public static IApplicationBuilder ConfigureModules(this IApplicationBuilder app, Action modules);
public static IApplicationBuilder UseModules(this IApplicationBuilder app, Action modules = null);
public static ModularApplicationBuilder UseStaticFilesModules(this ModularApplicationBuilder modularApp);
}

it‘s remove

how to use beta 3.0 to create this OrchardCore.Samples

IShellSettingsConfigurationProvider problem with multi-tenant in Core 2.0

Working with Modules in Asp.Net Core 2.0 I get the error below when I enable WithTenants. The sample in this repo does work, but enabling tenants in Core 2.0 does not. Is there something else to do here or is multi-tenancy not yet available with 2.0?

services.AddModules( c => c.WithTenants());

System.InvalidOperationException: 'Cannot consume scoped service 'Orchard.Environment.Shell.IShellSettingsConfigurationProvider' from singleton 'Orchard.Environment.Shell.IShellSettingsManager'.

image

(@contrivedex on twitter)

How to add tenant at runtime

Hi there !

Great work on orchard core and i am thinking of using it for a new SAAS product I am developing.

I have two questions though ( since the docs seem to be not there )

  1. I can add tenants via the configuration file, but how can i add them at runtime ? e.g have an admin area or self registration feature for users ...

  2. Are modules loaded in an assemblyloadcontext and isolated from the main application ?

The type 'RazorViewAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, ' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0

I was clone form github, run from vs 2017 the web site has been an error
both in dev brach and master brach

`An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.
Generated Code

The type 'RazorViewAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@"/.Modules/OrchardCore.Setup/Views/Setup/Index.cshtml", typeof(AspNetCore.__Modules_OrchardCore_Setup_Views_Setup_Index))]
The type '__Modules_OrchardCore_Setup_Views_Setup_Index' already contains a definition for '__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.SelectTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper;
The type 'FormTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper;
The type 'RenderAtEndOfFormTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper;
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper;
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper;
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper;
The type 'SelectTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.SelectTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper;
The type 'SelectTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.SelectTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper;
The type 'OptionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
private global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper;
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
Write(T["The site name is required."]);
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
EndContext();
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelperglobal::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper();
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
await __tagHelperExecutionContext.SetOutputContentAsync();
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
if (!__tagHelperExecutionContext.Output.IsContentModified)
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3f23e353aa8a40018a89094688cd038d", async() => {
The type 'OptionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
if (!__tagHelperExecutionContext.Output.IsContentModified)
Cannot assign to 'Value' because it is a 'method group'
+
EndContext();
Argument 2: cannot convert from 'method group' to 'object'
+
#line 130 "C:\Users\hyzx8\Pictures\AP\OrchardCore-master\src\OrchardCore.Modules\OrchardCore.Setup\Views\Setup\Index.cshtml"
The type 'OptionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
EndContext();
Cannot assign to 'Value' because it is a 'method group'
+
#line 120 "C:\Users\hyzx8\Pictures\AP\OrchardCore-master\src\OrchardCore.Modules\OrchardCore.Setup\Views\Setup\Index.cshtml"
Argument 2: cannot convert from 'method group' to 'object'
+
__OrchardCore_DisplayManagement_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.SiteTimeZone);
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
EndContext();
The type 'SelectTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
EndContext();
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
BeginContext(6065, 54, true);
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
WriteLiteral("\n <span class="text-muted form-text small">");
The type 'SelectTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
WriteLiteral("\n <span class="text-muted form-text small">");
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
EndContext();
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
#line hidden
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
EndContext();
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
EndContext();
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
if (!__tagHelperExecutionContext.Output.IsContentModified)
The type 'OptionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
EndContext();
Cannot assign to 'Value' because it is a 'method group'
+
Argument 2: cannot convert from 'method group' to 'object'
+
#line default
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
The type 'SelectTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
if (!__tagHelperExecutionContext.Output.IsContentModified)
The type 'SelectTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
if (!__tagHelperExecutionContext.Output.IsContentModified)
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
{
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
BeginContext(7163, 17, true);
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
WriteLiteral("\n ");
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
+
WriteLiteral("\n ");
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
{
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__tagHelperExecutionContext.Add(__OrchardCore_DisplayManagement_TagHelpers_ValidationMessageTagHelper);
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("fieldset", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "846ebd0c61d74f1b934241379acb4e9a", async() => {
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
}
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
#line hidden
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
EndContext();
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
#line default
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
Write(__tagHelperExecutionContext.Output);
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__tagHelperExecutionContext = __tagHelperScopeManager.End();
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
{
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
BeginContext(9461, 13, true);
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__tagHelperExecutionContext = __tagHelperScopeManager.End();
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
Write(__tagHelperExecutionContext.Output);
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
BeginContext(10020, 13, true);
The type 'LabelTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.PasswordConfirmation);
The type 'InputTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
__OrchardCore_DisplayManagement_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.PasswordConfirmation);
The type 'ValidationMessageTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
The type 'FormTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
public Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer T { get; private set; }
The type 'RenderAtEndOfFormTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.TagHelpers, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
+
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
Cannot assign to 'Action' because it is a 'method group'
+
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }

Show compilation source
C:\Users\hyzx8\Pictures\AP\OrchardCore-master\src\OrchardCore.Modules\OrchardCore.Setup\Views\Setup\Index.cshtml

Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'
Ambiguity between '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper' and '__Modules_OrchardCore_Setup_Views_Setup_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper'

Show compilation source
`

dotnet publish of the sample solution throws an null reference exception while dotnet run works properly

I used the unchanged sample project and tried to publish it to a local folder. Running the project from within Visual Studio worked, ´dotnet run´ worked as well. Only ´dotnet publish -o ...´resulted in a project, where a null reference exception was thrown, when I tried the route to Module1/Home/Index. Am I missing something here or is this a bug? (BTW: This happened on a Mac and on a Windows machine)

  Connection id "0HL8I8AFQ6IPM", Request id "0HL8I8AFQ6IPM:00000001": An unhandled exception was thrown by the application.

System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AspNetCore.Mvc.Razor.Internal.FileProviderRazorProject.d__5.MoveNext()
at Microsoft.AspNetCore.Mvc.Razor.Internal.FileProviderRazorProject.d__5.MoveNext()
at Microsoft.AspNetCore.Mvc.Razor.Internal.FileProviderRazorProject.d__5.MoveNext()
at Microsoft.AspNetCore.Mvc.Razor.Internal.FileProviderRazorProject.d__5.MoveNext()
at Microsoft.AspNetCore.Mvc.RazorPages.Internal.RazorProjectPageRouteModelProvider.OnProvidersExecuting(PageRouteModelProviderContext context)
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.BuildModel()
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context)
at Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.UpdateCollection()
at Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.get_ActionDescriptors()
at Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.GetTreeRouter()
at Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.RouteAsync(RouteContext context)
at Microsoft.AspNetCore.Routing.RouteCollection.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Builder.RouterMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OrchardCore.Modules.ModularTenantRouterMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OrchardCore.Modules.ModularTenantContainerMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.d__2.MoveNext()
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 605.731ms 500

POST request not working

I forked this repo and added a "PersonController.cs" file. GET and GET by Id are working fine with a small sample data class (Person model)

But I can't get POST requests to work. I'm guessing this is an error on my part, but I've tried everything I know of.

When I try Post, I get the following error.

{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"traceId": "|12ea6c65-4c366455b553a452."
}

I am using Postman app for testing.

https://github.com/tforsberg/OrchardCore.Samples

Documentation is missing admin/user login instructions

Hi I am happy to add/help with documentation, I could not find how to login as a admin, usage.

I would also ask for list of hosting/compatible sites, especially since many chew down the RAM, we need to have some verified providers and how much RAM do we need, how much disk I/O do we need etc. Many choke RAM and disk i/o

thanks

Modules parts and drivers

Hey @sebastienros do you plan to update samples to include also how to create a Module with parts and drivers. What are the packages that should be referenced?
I could not find any documentation related to this topic for now.

MultiTenantApplication not working

The MultiTenantApplication is throwing an expection on startup; and not responding to browser requests

Hosting environment: Development
Content root path: C:\Users\local.user\source\repos\orchard-core-samples\MultiTenantApplication
Now listening on: http://localhost:55207
Application started. Press Ctrl+C to shut down.
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[11]
Hosting startup assembly exception
System.InvalidOperationException: Startup assembly Microsoft.AspNetCore.ApplicationInsights.HostingStartup failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.ApplicationInsights.HostingStartup, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks, IntPtr ptrLoadContextBinder)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, IntPtr ptrLoadContextBinder)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of inner exception stack trace ---
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:55207/
info: OrchardCore.Environment.Shell.ShellHost[0]
Start creation of shells
info: OrchardCore.Environment.Extensions.Loaders.AmbientExtensionLoader[0]
Loaded referenced ambient extension "Module1": assembly name="Module1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
info: OrchardCore.Environment.Extensions.Loaders.AmbientExtensionLoader[0]
Loaded referenced ambient extension "Module2": assembly name="Module2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
info: OrchardCore.Environment.Extensions.Loaders.AmbientExtensionLoader[0]
Loaded referenced ambient extension "OrchardCore.Mvc": assembly name="OrchardCore.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
info: OrchardCore.Environment.Shell.Builders.ShellContextFactory[0]
Creating shell context for tenant Acme
info: OrchardCore.Environment.Shell.Builders.ShellContextFactory[0]
Creating shell context for tenant Contoso
fail: OrchardCore.Environment.Shell.ShellHost[0]
A tenant could not be started: Contoso
System.AggregateException: One or more errors occurred. (Unable to resolve service for type 'System.Text.Encodings.Web.JavaScriptEncoder' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet'.) ---> System.InvalidOperationException: Unable to resolve service for type 'System.Text.Encodings.Web.JavaScriptEncoder' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type serviceType, Type implementationType, ISet1 callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(Type serviceType, Type implementationType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(Type serviceType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType, ServiceProvider serviceProvider) at System.Collections.Concurrent.ConcurrentDictionaryExtensions.GetOrAdd[TKey,TValue,TArg](ConcurrentDictionary2 dictionary, TKey key, Func3 valueFactory, TArg arg) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at OrchardCore.Environment.Shell.Builders.ServiceProviderExtensions.CreateChildContainer(IServiceProvider serviceProvider, IServiceCollection serviceCollection) at OrchardCore.Environment.Shell.Builders.ShellContainerFactory.CreateContainer(ShellSettings settings, ShellBlueprint blueprint) at OrchardCore.Environment.Shell.Builders.ShellContextFactory.<CreateDescribedContextAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at OrchardCore.Environment.Shell.Builders.ShellContextFactory.<OrchardCore-Environment-Shell-Builders-IShellContextFactory-CreateShellContextAsync>d__5.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at OrchardCore.Environment.Shell.ShellHost.<>c__DisplayClass11_0.b__0(String tenant)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at OrchardCore.Environment.Shell.ShellHost.b__13_0(ShellSettings settings)
---> (Inner Exception #0) System.InvalidOperationException: Unable to resolve service for type 'System.Text.Encodings.Web.JavaScriptEncoder' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type serviceType, Type implementationType, ISet1 callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(Type serviceType, Type implementationType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(Type serviceType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType, ServiceProvider serviceProvider) at System.Collections.Concurrent.ConcurrentDictionaryExtensions.GetOrAdd[TKey,TValue,TArg](ConcurrentDictionary2 dictionary, TKey key, Func`3 valueFactory, TArg arg)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at OrchardCore.Environment.Shell.Builders.ServiceProviderExtensions.CreateChildContainer(IServiceProvider serviceProvider, IServiceCollection serviceCollection)
at OrchardCore.Environment.Shell.Builders.ShellContainerFactory.CreateContainer(ShellSettings settings, ShellBlueprint blueprint)
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.d__5.MoveNext()<---

fail: OrchardCore.Environment.Shell.ShellHost[0]
A tenant could not be started: Acme
System.AggregateException: One or more errors occurred. (Unable to resolve service for type 'System.Text.Encodings.Web.JavaScriptEncoder' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet'.) ---> System.InvalidOperationException: Unable to resolve service for type 'System.Text.Encodings.Web.JavaScriptEncoder' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type serviceType, Type implementationType, ISet1 callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(Type serviceType, Type implementationType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(Type serviceType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType, ServiceProvider serviceProvider) at System.Collections.Concurrent.ConcurrentDictionaryExtensions.GetOrAdd[TKey,TValue,TArg](ConcurrentDictionary2 dictionary, TKey key, Func3 valueFactory, TArg arg) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at OrchardCore.Environment.Shell.Builders.ServiceProviderExtensions.CreateChildContainer(IServiceProvider serviceProvider, IServiceCollection serviceCollection) at OrchardCore.Environment.Shell.Builders.ShellContainerFactory.CreateContainer(ShellSettings settings, ShellBlueprint blueprint) at OrchardCore.Environment.Shell.Builders.ShellContextFactory.<CreateDescribedContextAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at OrchardCore.Environment.Shell.Builders.ShellContextFactory.<OrchardCore-Environment-Shell-Builders-IShellContextFactory-CreateShellContextAsync>d__5.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at OrchardCore.Environment.Shell.ShellHost.<>c__DisplayClass11_0.b__0(String tenant)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at OrchardCore.Environment.Shell.ShellHost.b__13_0(ShellSettings settings)
---> (Inner Exception #0) System.InvalidOperationException: Unable to resolve service for type 'System.Text.Encodings.Web.JavaScriptEncoder' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type serviceType, Type implementationType, ISet1 callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(Type serviceType, Type implementationType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(Type serviceType, ISet1 callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(Type serviceType, ISet1 callSiteChain) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType, ServiceProvider serviceProvider) at System.Collections.Concurrent.ConcurrentDictionaryExtensions.GetOrAdd[TKey,TValue,TArg](ConcurrentDictionary2 dictionary, TKey key, Func`3 valueFactory, TArg arg)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at OrchardCore.Environment.Shell.Builders.ServiceProviderExtensions.CreateChildContainer(IServiceProvider serviceProvider, IServiceCollection serviceCollection)
at OrchardCore.Environment.Shell.Builders.ShellContainerFactory.CreateContainer(ShellSettings settings, ShellBlueprint blueprint)
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.d__5.MoveNext()<---

info: OrchardCore.Environment.Shell.ShellHost[0]
Done creating shells
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 450.1979ms 200

Powerpoint missing!

Hello @jeremycook

Powerpoint link missing from the video and also the video needs to have the GitHub link in the description. Poor compilation at youtube.

Thank you,
Md. Alim Ul Karim
C#.NET Software Architect @ Crossover.com

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.