Jul 10, 2019 04:46 PM|bruce (sqlwork.com)|LINK
asp.net core razor pages are different than the webform version.
in webforms, the razor page is a text file, that is compiled on request, and you reference the page by its IIS file name.
in asp.net core razor pages are not referenced by their file name. routing is used to access a asp.net core razor page. by default razor page routing is based on the the path to the razor page from the root folder (default /pages) not including the extension.
but you can use attribute routing to override.
as suggested you should remove all the IIS rules.