I'm start to learning MVC and got problem at the beginning :) I cant open or add any View. If i try to open any cshtml file, it shows me error:
The document cannot be opened. It has been renamed, deleted or moved
Ofcourse document appear in folder. I tried to open cshtml in newly created project and from templates downloaded from microsoft sites. Both gives me the same error. I have done some web research, but any of those solution does not work for me. I tried to modify web.config files, but nothing happend. I've got the same error over and over again.
For now I'am downloading vs2013.4 to reinstall my environment, but i'am realy curious what making error here. Have you got any solutions?
Talk1:
have you tried restarting your machine ;)
Solutions1
Head to your project's properties, and choose "Web" from the left hand side.
Underneath "Servers", if you're using IIS Express (usually default), you'll have a button that reads "Create Virtual Directory".
Click that and then you should be able to open your views.
Talk1:
As i said in upper answer comments, i reinstal visual studio to update4.
Talk2:
I likewise installed update 4 - no joy. Then I did as suggested above and it works. But why? What does having a virtual directory in the project properties have to do with Visual Studio 2013's ability to edit a .cshtml file? Weird!
Solutions2
closing VS and then deleting the solution's .suo file. then restart VS by double-clicking the .sln file i think this will work for you.
Talk1:
I tried this with no success. Also it shouldn't appear with every new project. For now i reinstall visual studio to update4 and it's working fine.