asp.net mvc 4 - How to call ASP MVC CSHTML View directly with ".cshtml" extension from browser -


i want call asp mvc cshtml view directly browser ".cshtml" extension like:

    www.mysite.com\receive.cshtml?... 

instead

    www.mysite.com\receive?... 

but got 404

any idea ?

1. default iis request filtering configured not serve requests .cshtml files.

2. razor views not meant accessed directly client. yet, take @ https://github.com/servicestack/razorrockstars


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -