Custom Widgets - View not showing up.

Posted by vyasashutosh on 25-Apr-2019 10:52

I am new to SiteFinity and yet am writing a Custom Widget for Sitefinity. I have followed the documentation and process as described here:

https://www.progress.com/documentation/sitefinity-cms/create-custom-designer-views-mvc

However, when I compile this custom widget and try to use it on a form, it throws an exception.

Upon looking into the Error Logs, it says as below:

Type : System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : The view 'Write.Default' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/MultipleChoiceExtendedField/Write.Default.cshtml
~/Views/Shared/Write.Default.cshtml
~/Views/MultipleChoiceExtendedField/Write.Default.aspx
~/Views/MultipleChoiceExtendedField/Write.Default.ascx
~/Views/Shared/Write.Default.aspx
~/Views/Shared/Write.Default.ascx
~/Views/MultipleChoiceExtendedField/Write.Default.vbhtml
~/Views/Shared/Write.Default.vbhtml
Source : System.Web.Mvc

 have the views right where they are needed in the Mvc folder under ~/Mvc/Views/MultipleChoiceExtendedField folder.

According to the message, I have also tried to move the views outside of Mvc folder and onto the root folder as the links suggest, however the error remains the same.

I feel I am missing something very small.

Any help would be appreciated.

Thanks Ashutosh

All Replies

This thread is closed