+1-888-365-2779
Try Now
More in this section

Forums / Project Feather / Creating widgets

Creating widgets

6 posts, 0 answered
  1. Andrew
    Andrew avatar
    3 posts
    Registered:
    29 Aug 2014
    03 Oct 2014
    Link to this post

    I'm trying to create a widget following this tutorial https://github.com/Sitefinity/feather/wiki/Create-a-%E2%80%9CHello-World%E2%80%9D-MVC-widget-in-a-separate-assembly

    Everything looks OK, the view exists in the correct folder, I applied the changes to the AssemblyInfo.cs etc.

    When I hit the controller that fires this I've noticed that an Application_Error is thrown in my Global.asax file as below:
    + LastActivityDate '((System.Web.Profile.ProfileBase)(((ASP.global_asax)(sender)).Profile)).LastActivityDate' threw an exception of type 'System.ArgumentNullException' System.DateTime {System.ArgumentNullException}

    + LastUpdatedDate '((System.Web.Profile.ProfileBase)(((ASP.global_asax)(sender)).Profile)).LastUpdatedDate' threw an exception of type 'System.ArgumentNullException' System.DateTime {System.ArgumentNullException}
    UserName null string




    This is the error message that is rendered:

    The view 'Default' or its master was not found or no view engine supports the searched locations. The following locations were searched:
    ~/Views/YouiWall/Default.aspx
    ~/Views/YouiWall/Default.ascx
    ~/Views/Shared/Default.aspx
    ~/Views/Shared/Default.ascx
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/YouiWall/Default.aspx
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/YouiWall/Default.ascx
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/Shared/Default.aspx
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/Shared/Default.ascx
    ~/Views/YouiWall/Default.cshtml
    ~/Views/YouiWall/Default.vbhtml
    ~/Views/Shared/Default.cshtml
    ~/Views/Shared/Default.vbhtml
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/YouiWall/Default.cshtml
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/YouiWall/Default.vbhtml
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/Shared/Default.cshtml
    ~/Frontend-Assembly/YouiWallWidget/Mvc/Views/Shared/Default.vbhtml

    Any help would be greatly appreciated.

     

     

  2. Elena
    Elena avatar
    3 posts
    Registered:
    12 Nov 2013
    03 Oct 2014 in reply to Andrew
    Link to this post

    Hi Andrew,

    Thank you for the details. Could you double check if you
    have marked your Default.cshtml view as embedded resource?

    Also would you test if the issue is reproducible on empty
    project- create empty Sitefinity project, add Feather as described here (https://github.com/Sitefinity/feather/wiki/Getting-Started)
    and drop your new dll YouiWallWidget into the bin folder of the new
    SitefinityWebApp project. Is the issue still representable on the empty site?

     

     Regards,

    Elena

  3. Andrew
    Andrew avatar
    3 posts
    Registered:
    29 Aug 2014
    06 Oct 2014 in reply to Elena
    Link to this post

    Hi, 

     Thanks for the response, yes the view is embedded, I had some issues with getting the basic mvc routing working had a controller in a namespace that it couldn't resolve now I can get widgets working within the sitefinity project. I'm going to go with that for now.

    Thanks for the response,
    Andrew 

     

  4. Elena Ganeva
    Elena Ganeva avatar
    36 posts
    Registered:
    20 Jul 2016
    07 Oct 2014
    Link to this post

    Hello Andrew,

    I was just wondering whether you still have the issue trying to create a widget?



    Regards,
    Elena Ganeva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Andrew
    Andrew avatar
    3 posts
    Registered:
    29 Aug 2014
    07 Oct 2014 in reply to Elena Ganeva
    Link to this post

    Hi Elena,

    I'm creating widgets OK within the SitefinityWebApp project, I still have issues with a widget in a seperate project. 

     

    Regards,
    Andrew

     

  6. Elena Ganeva
    Elena Ganeva avatar
    36 posts
    Registered:
    20 Jul 2016
    07 Oct 2014
    Link to this post

    Hello Andrew,

    Could you provide me with your YouiWallWidget project so I could test the behavior on my side and investigate the problem further? Also would you please attach your Global.asax file, so I could review it as well.

    Thanks in advance.

    Regards,
    Elena Ganeva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
6 posts, 0 answered