Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick 101 posts 123 karma points
    Jul 03, 2013 @ 13:06
    Nick
    0

    Problem running Contour

    Hi 

    I used to have Contour running on a project but I recently tried to load the project on a new hard drive (same machine) and Conour doesn't run.

    I am using Umbraco version umbraco v 4.11.6 and I think it's version 3 of contour although I can't easily find what version it is.

    The problem I get is:
    c:\Projects\...\umbraco\plugins\umbracoContour\Views\Script.cshtml(2): error CS1525: Invalid expression term 'abstract'

    So the problem is on line 2 of Script.cshtm file:

    @using Umbraco.Forms.Core

    @abstract  Umbraco.Forms.MVC.Extensions <-- abstract isn't understood

    @using Umbraco.Forms.Mvc.Models

     

    Since Contour can't understand something so fundamental as the "abstract" keyword, I am guessing this could be a problem relating to .NET or MVC version?

    Any ideas what it could be?
    Project is running on .NET 4.5 with MVC 3

    Thank you

  • Comment author was deleted

    Jul 03, 2013 @ 13:47

    By default the top of that file looks like

    @inherits WebViewPage<Umbraco.Forms.Mvc.Models.FormViewModel>      

    @using Umbraco.Forms.Core

    @using Umbraco.Forms.Mvc.Models

    @using Umbraco.Forms.Mvc.BusinessLogic

    @using Umbraco.Forms.MVC.Extensions

     

    So I'm assuming you changed something? Try changing abstract to using again

  • Nick 101 posts 123 karma points
    Jul 03, 2013 @ 15:08
    Nick
    0

    This is very odd.

    This fixed it. Need to investigate how it got mangled like that, I suspect maybe resharper automated clean tool might have done it.

    Regardless, thank you very much 

  • Comment author was deleted

    Jul 03, 2013 @ 15:13

    Ok glad it's working now :)

Please Sign in or register to post replies

Write your reply to:

Draft