Copied to clipboard

Flag this post as spam?

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


  • Dimitris 6 posts 76 karma points
    May 25, 2016 @ 12:59
    Dimitris
    0

    Error CS0103

    Hi! I just finished a site i am constructing in Umbraco (in a very short time though automatic cms possibilities) and when i run it Visual Studio 2015 i get the following error: The name 'Parameter' does not exist in the current context C:\blahblahblah\Umbracotest\AppData\45bb9099-d691-4d29-805f-1c014f3fe63c\0cea91f6-531d-4cce-9182-22d18528956636c18754-5ea7-47a7-930c-fc411f142a16HomeLink.cshtml 3

    The code of the .cshtml file with the error is the following:

    @{ 
        var homeNode = Model.AncestorOrSelf("Home");
        var siteName = Parameter.SiteName;
    }
    <a href="@homeNode.Url">@siteName</a>
    

    even though for testing i make comment this, i get an other error refferencing some Library with the same error code in other .cshtml

    The file that throughs me the error is located insite App_Data that as i have seen generates automaticly some code it needs.

    So, my question is, how can i get rid of this error and can i build my solution in VS and run normal so i can maybe upload it to a host site service?? Thank u all! :D

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies