Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Jan 26, 2012 @ 08:28
    Fuji Kusaka
    0

    Error msg when saving CSHTML

    Anyone knows why am getting this error message when saving a Razor file ?

    c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1b8e1135\9679c263\App_Web_634631739213588000_pagename.cshtml.70df5e80.na6aejot.0.cs(27): error CS0138: A using namespace directive can only be applied to namespaces; 'umbraco.MacroEngines.ExtensionMethods' is a type not a namespace

     


  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jan 26, 2012 @ 10:08
    Dan Diplo
    0

    This is similar to this topic.  The obvious thing would be to check that you don't have a statement saying:

    @using umbraco.MacroEngines.ExtensionMethods

    It would need to be:

    @using umbraco.MacroEngines

    (Since ExtensionMethods is a class, not a namespace).

     

Please Sign in or register to post replies

Write your reply to:

Draft