This is a sample Orchard Core web project specifically created to reproduce a bug related to Areas.
- Install necessary SDKs for ASP.NET Core development (i.e. dotnet SDK).
- Restore NuGet packages, build and run AreaIssue.Web project.
- The opened page is the Orchard Core setup page. Fill with dummy data (no emails sent). Recipe can be left as is.
- Log in with the created super user.
- Go to ~/Admin > Configuration > Features and enable AreaIssue.Module feature. This will register the module's area.
- Now the
~/AreaIssue.Module/Test/Index
URL opens the page test page which is generated by the TestController/Index action in the AreaIssue.Module class library.
- Open the AreaIssue.Web/Controllers/ReproController.cs file.
- You can see that the
RedirectToAction("Index", "Test", new { Area = "AreaIssue.Module" });
triggers this error, however, this redirect will work runtime (use the~/AreaIssue.Web/Repro/Index
URL).