Can you give some details about how you start the debug? Is it by hitting F5 on VS, or attaching it to w3p process, or ... ?
If you launch via F5, make sure that "~/Views/Page.cshtml" is not the active item, because otherwise it is used as "start page", which indeed does not exists per se in MVC logic.
If your url in the browser looks like Localhost:51598/Views/Page.cshtml then delete everything after the first slash and hit enter. or specify a different start page like Michael said.
Debugging Umbraco using VS
Hi,
I need to debug some code I wrote but when I launch the debug mode in VS, I get an error message.
Any ideas how I can fix this? I already tried to clear the cache but without any success.
Thanks
Hi TempleClause,
Can you give some details about how you start the debug? Is it by hitting F5 on VS, or attaching it to w3p process, or ... ?
If you launch via F5, make sure that "~/Views/Page.cshtml" is not the active item, because otherwise it is used as "start page", which indeed does not exists per se in MVC logic.
Hope this helps.
Cheers,
Michael.
If your url in the browser looks like
Localhost:51598/Views/Page.cshtml
then delete everything after the first slash and hit enter. or specify a different start page like Michael said.Thanks guys. It was not my start page. The problem was a different one. I had to change the following web.config line:
Before it was set to "PureLive". Also I needed to generate the models in the backend by going to Developer -> Models Builder -> Generate Models.
Glad you sorted it out :-)
is working on a reply...