IIS: cshtml pages in an application under a site

Refresh

4 weeks ago

Views

4 time

0

On a Windows Server 2016, I have a website with cshtml pages. Under this site, I need to add another site with cshtml pages through "Add Application" in IIS Manager (version 1607). Let me call this added application "app"

Here is the problem. This link

http://example.com/app/index.cshtml

produces a 404 error. However, if I add a html page such as test.html under the application, this link works:

http://example.com/app/test.html

How can I make cshtml pages in the "app" application work ?

0 answers