-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
Describe the bug
When trying to use OrchardCore on a net6.0 app, the default page 404s.
To Reproduce
- Build and run the following app using the latest 6.0.0-preview7 build:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="1.0.0-rc2-13450" />
</ItemGroup>
</Project>using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webbuilder =>
{
webbuilder.Configure(app =>
{
app.UseRouting();
app.UseStaticFiles();
app.UseOrchardCore();
});
})
.ConfigureServices(services => { services.AddOrchardCms(); })
.Build()
.Run();- Navigate to https://localhost:5001/
Exceptions (if any)
(Note: there is a background NullReferenceException occurring in DependencyInjection code. That is tracked by dotnet/runtime#55255. I've fixed it locally and ensured that this issue still occurs even when the NRE is fixed.)
Further technical details
- ASP.NET Core version: 6.0.0-preview.7.21355.4
- Include the output of
dotnet --info
❯ dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.7.21357.29
Commit: 229bc924ef
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19043
OS Platform: Windows
RID: win10-x64
Base Path: C:\dotnet\sdk\6.0.100-preview.7.21357.29\
Host (useful for support):
Version: 6.0.0-preview.7.21356.2
Commit: 566b53a66b
.NET SDKs installed:
6.0.100-preview.7.21357.29 [C:\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-preview.7.21355.4 [C:\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-preview.7.21356.2 [C:\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.0-preview.7.21352.1 [C:\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version: n/a
cc @davidfowl
Metadata
Metadata
Assignees
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
