Copied to clipboard

Flag this post as spam?

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


  • Peter Evjan 1 post 21 karma points
    Mar 02, 2012 @ 18:29
    Peter Evjan
    0

    Can't build a new Umbraco 5 project in Visual Studio

    I just downloaded Umbraco 5 through the Web Platform Installer, chose the only available starter kit and finished the installation. Then I opened the project in Visual Studio 2010 and tried to build it, and got the following errors:

    Error    1    The name 'ViewBag' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    5   
    Error    2    The name 'Url' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    6   
    Error    3    The name 'Url' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    10   
    Error    4    The name 'Url' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    11   
    Error    5    The name 'Url' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    13   
    Error    6    The name 'Url' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    16   
    Error    7    The name 'Url' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    17   
    Error    8    The name 'Url' does not exist in the current context    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    18   
    Error    9    'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'Partial' and no extension method 'Partial' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)    C:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    28   
    Error    10    The name 'ViewBag' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    5    10    http://localhost:54713/
    Error    11    The name 'Url' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    6    32    http://localhost:54713/
    Error    12    The name 'Url' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    10    61    http://localhost:54713/
    Error    13    The name 'Url' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    11    17    http://localhost:54713/
    Error    14    The name 'Url' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    13    61    http://localhost:54713/
    Error    15    The name 'Url' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    16    19    http://localhost:54713/
    Error    16    The name 'Url' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    17    19    http://localhost:54713/
    Error    17    The name 'Url' does not exist in the current context    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    18    19    http://localhost:54713/
    Error    18    'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'Partial' and no extension method 'Partial' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)    c:\code\Umbraco CMS 5\App_Plugins\Packages\DevDataset\Views\_DevDatasetLayout.cshtml    28    10    http://localhost:54713/

     

    What to do?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 04, 2012 @ 16:53
    Jeroen Breuer
    0

    You could try the Jupiter as Visual Studio solution project or one of the Visual Studio templates. Don't know why the code doesn't build, but if you download the complete source code that does build.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft