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
    Jun 21, 2012 @ 14:02
    Fuji Kusaka
    0

    Cant save cshtml file in umbraco v 4.7.0

    Anyone  can point out how to get razor file saved in version 4.7.0?

    I have try to save a blank file but not working at all. 

    This is the error am getting very time am trying to save a file.

     

    Error occured
    c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\dc9ed78a\5c35ffd\App_Web_634758895741652126_axys-group-navi.cshtml.70df5e80.h7twa9gj.0.cs(27): error CS0138: A using namespace directive can only be applied to namespaces; 'umbraco.MacroEngines.ExtensionMethods' is a type not a namespace

    any suggestions?

     

  • Peter Gregory 408 posts 1614 karma points MVP 3x admin c-trib
    Jun 21, 2012 @ 14:17
    Peter Gregory
    0

    Hey Fuji

    Could you post the Razor file you are trying to save?

    Peter

  • Peter Gregory 408 posts 1614 karma points MVP 3x admin c-trib
    Jun 21, 2012 @ 14:18
    Peter Gregory
    0

    Also seemed that you asked the same question sometime last year? http://our.umbraco.org/forum/developers/razor/28048-Error-msg-when-saving-CSHTML-

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 21, 2012 @ 14:20
    Fuji Kusaka
    0

    Hi Peter,

    Even a blank file returns me an error. However i do have a project running on v4.7.0 not having this issue after overwritting the MacroEngines.dll

     

  • Peter Gregory 408 posts 1614 karma points MVP 3x admin c-trib
    Jun 21, 2012 @ 14:27
    Peter Gregory
    0

    Is the working site on the same machine? Are you attempting an upgrade? If you are why are you not going to 4.7.2?

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 21, 2012 @ 14:32
    Fuji Kusaka
    0

    Well remember the server we configured, we did installed v4.7.1 for this project and turns out when i tried to save the file i got the error and only then i noticed from the About and Config file that i was actually using v4.7.0 instead!

    Do you think the server might be doing something wrong here?

  • Peter Gregory 408 posts 1614 karma points MVP 3x admin c-trib
    Jun 22, 2012 @ 05:03
    Peter Gregory
    0

    Sorry for the delay to my reply it was around midnight last night and had to get some sleep.

    It sounds like you might have your installation a bit messed up.  I would try and perform an Upgrade to v 4.7.2 making sure that you overwrite all the relevant files. Then use something like winmerge or beyondcompare to compare the web.config files to see if you have missed anything.

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 25, 2012 @ 09:04
    Fuji Kusaka
    0

    Hi Peter,

    I switched to V.7.2 and i think we must be having some permission issues on the server. Now with v.4.7.2 still cant save the file but doesnt return any error message expect alert message "Scripting file could not be saved" !

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 05, 2012 @ 11:11
    Fuji Kusaka
    0

    Finally got this working!!!...needed to set permission on the temp file

     

    //fuji

  • Stewart Ellis 25 posts 64 karma points
    Jul 27, 2012 @ 18:03
    Stewart Ellis
    0

    Fuji - please elaborate. What temp file and what permissions did you set. I'm having the same problem

     

    Thanks

    Stewart

Please Sign in or register to post replies

Write your reply to:

Draft