asp.net - Running a copy of a .cshtml file gives a 404 -


i've created copy(right-click copy & paste) of home page in vs2013 asp.net mvc5 project , named indexl10. when try run it, following error:

description: http 404. resource looking (or 1 of dependencies) have been removed, had name changed, or temporarily unavailable. please review following url , make sure spelled correctly.

requested url: /home/indexl10

so, i'm guessing there's more copying , pasting. i've tried googling around, i've not found answer, or search string takes me page of user similar problem. have ideas/suggestions? thanks

*.cshtml files not *.aspx files. they're not directly exposed. url translated framework route. route points particular controller , particular action in controller, called framework. action returns actionresult, in mvc typically satisfied via viewresult. conventions in framework come play view render same name action called, not strictly required , can overridden. regardless, view (your *.cshtml file) rendered razor utilizing data provided action , returned response client.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -