Copied to clipboard

Flag this post as spam?

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


  • Dany Wu 81 posts 114 karma points
    Mar 20, 2011 @ 00:02
    Dany Wu
    0

    Missing "Helpers" error in saving a basic script file from a subpages template

    Hi folks,

    I am using the 4.7 source code and have just created a basic macro script from the "List SubPages by limit and datetime" template. When I tried to save it without any modifications I got:

    c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\d23cbbcf\edb48287\App_Web_634362182450048828_subpages.cshtml.70df5e80.msc7ythu.0.cs(19): error CS0234: The type or namespace name 'Helpers' does not exist in the namespace 'System.Web' (are you missing an assembly reference?

    I'm not entirely sure what this means - can someone point me in the right direction please?

    Thanks,
    Dany.

  • Dany Wu 81 posts 114 karma points
    Mar 20, 2011 @ 02:06
    Dany Wu
    0

    It seems the source presentation project is missing references to some MVC assemblies. I added them from the foreign dll's folder and it is working again. I guess it can also be added from the GAC?

  • Don Ross 28 posts 49 karma points
    Mar 29, 2011 @ 02:22
    Don Ross
    0

    Is there a resolution out there can can be downloaded/installed?

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Mar 29, 2011 @ 08:02
    Sebastiaan Janssen
    0

    It looks like you upgraded from a previous version. You need to update your web.config as specified on the download page: 

    Web.Config changes

    • Update the web web.config to include the 4 changes found in (they're clearly marked in the web.config in 4.7 as <!-- Added in Umbraco 4.6.2 -->):
      • A new sectionGroup under <configSections/>
      • It's three new keys under <appSettings/>
      • A new buildprovider section under <compilation/>
      • A new system.web.webPages.razor element under <configuration/>

  • Fengelz 106 posts 221 karma points
    Apr 06, 2011 @ 11:45
    Fengelz
    0

    Hmmm I'm getting the same error on a freshly installed 4.7 site.

    Any idea what else could cause the problem, if the web.config looks correct?

    Best regards Sune

  • Fengelz 106 posts 221 karma points
    Apr 06, 2011 @ 12:08
    Fengelz
    0

    Sorry, too quick on the trigger there. I was missing the actual dll's.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Apr 06, 2011 @ 12:16
    Sebastiaan Janssen
    0

    Just curious: how were you missing those in a fresh install? Everything should be included, right?

  • Fengelz 106 posts 221 karma points
    Apr 06, 2011 @ 12:22
    Fengelz
    1

    The Site was apparently set up with a custom installer, and I just fetched the installation from svn, something went wrong in this proces.

    So no biggie :)

  • Greg Berlin 818 posts 634 karma points
    Mar 04, 2013 @ 02:00
    Greg Berlin
    0

    I've got this issue on a fresh Version 6 Install.  Installed from the binary.

    Which DLL is it missing exactly?

    Error is:

     Error occured
    
    c:\DEVELOPMENT\Sites\despangler.local\WEB\macroScripts\634979334878453971_verb_conjugation_overview.cshtml(2): error CS0234: The type or namespace name 'Cms' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)

     

    A razor script with just the following:

    @inherits PartialViewMacroPage

     

    Throws this error:

    Error occured
    c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a17adf73\5eaf38dc\App_Web_634979339575648376_verb_conjugation_overview.cshtml.70df5e80.uhjl3jj1.0.cs(29): error CS0246: The type or namespace name 'PartialViewMacroPage' could not be found (are you missing a using directive or an assembly reference?)

     

     

Please Sign in or register to post replies

Write your reply to:

Draft