This type of page is not served.

Posted by Community Admin on 04-Aug-2018 09:36

This type of page is not served.

All Replies

Posted by Community Admin on 02-Feb-2017 00:00

i have created MVC applicationwhich is having Master.cshtlm page and Details.cshtml page on Master.cshtml page there are links to show live Events and on clicking on each Event it will open Details.cshtml page and show Event details.

In this case on clicking on any event it throws and error as "This type of page is not served."

please find attached screenshot.

 

Posted by Community Admin on 02-Feb-2017 00:00

You cannot access directly cshtml files.In your screenshoy, you trying to access /Mvc/Views/Event/Details.cshtml

 

You need to build widget and do your logic inside widget and then return proper view. You can find documentation how to create MVC based widgets here: docs.sitefinity.com/for-developers-create-mvc-based-sitefinity-widgets

Posted by Community Admin on 02-Feb-2017 00:00

I have followed

https://www.youtube.com/watch?time_continue=96&v=vxDgFeliUUo

 this link since I am learning sitefinity and done exactly same.

This thread is closed