Allow browser to hit a .cshtml file and display the content
问题 I know this is a very odd request but to cut a long story short a developer have the wrong URL that has now been printed on material. The url was a .cshtml file which obviously is not allowed to be hit through IIS. I need to allow this particular cshtml or all of them to be rendered as plain html in the browser. Help will be appreciated. 回答1: This might not NOT the best solution, but it is the one I know of the top of my head. Go to your Global.asax file. From there go inside of or create the