November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Tony
Hi Vincent, thanks for replying. I had MapContent when testing around and it didn't work. But the order was important - it had to be before MapControllerRoute. It solved the problem. Many thanks :)
Hi,
We are in the process of upgrading from CMS 11 to CMS 12. Errors are fixed and we can compile and run. Program.cs and Startup.cs was largely taken from the Alloy template to have something to start with. Database filled with a lot of pages from CMS 11.
When starting the application locally (and testing against local IIS) I get a 404 Not found when trying paths with known pages. Some things I have tested:
- I know that the page exists in the database, and has controller, view etc.
- Browsing to https://localhost:54806 hits StartPage (as in the routing directive), with currentPage is null. I tried getting a page by pageId of a known existing page in the StartPage controller to try to see if the database connection was OK and it returned the requested page, so database connection works.
- http://cms12.local/EPiServer redirects to http://cms12.local/EPiServer/Shell/Readonly
Log shows:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 GET https://localhost:54806/path/to/page - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/2 GET https://localhost:54806/path/to/page - 404 0 - 3.4802ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[16]
Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://localhost:54806/path/to/page, Response status code: 404
Startup class:
Program class: