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
    Mar 16, 2014 @ 12:55
    Fuji Kusaka
    0

    Error loading MacroEngine script

    Has anyone ever had this issue before when loading a page some of my Cshtml file just failed to load and give me that nasty error message : Error Loading MacroEngine Script ?

    If a Refresh the page the Script loads without any error .

    Any idea what might be causing this ?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 16, 2014 @ 13:47
    Jan Skovgaard
    0

    Hi Fuji

    Hmm, perhaps it's due to some examine indexes. Next time you see try deleting the indexing from the App_Data/TEMP folder and see if that helps.

    Craig had the same issue on a v4.7 installation and deleting the indexes worked for him http://our.umbraco.org/forum/developers/razor/49155-Error-loading-MacroEngine-script-(file-)?p=0#comment175289

    Cheers,
    Jan 

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 16, 2014 @ 15:30
    Fuji Kusaka
    0

    Hi Jan,

    thanks for the response. Btw its on a live website, any risks doing this online directly ? :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 16, 2014 @ 16:22
    Jan Skovgaard
    0

    Hi Fuji

    Since it's temporary files I would say no since they're being generated again once the indexers run and the site is being used etc.

    But as always make sure to make a backup of things before touching anything.

    Cheers,
    Jan 

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 16, 2014 @ 16:24
    Fuji Kusaka
    0

    Thanks  Jan,

    I will try to restart the app pool first and see how it goes. :) 

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 25, 2014 @ 03:57
    Fuji Kusaka
    0

    Hi Jan,

    Tried restartng the app pool but not after time i get the error msg that my script is not loading. Only on refresh the razor file loads. 

    Well next step will be to try removing the indexes.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 25, 2014 @ 08:33
    Dennis Aaen
    0

    Hi Fuji,

    You could try remove the files under the App_Data/TEMP, and the make a full site publish, and maybe you also need to restart the app pool.

    I helped Kate with some similar yesterday

    http://our.umbraco.org/forum/using/ui-questions/47637-Move-af-Umbraco-616-to-another-domain?p=1#comment176367

    Hope this helps,

    /Dennis

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 25, 2014 @ 12:04
    Fuji Kusaka
    0

    Hi Dennis,

    Just try deleting all the Temp files and restarting the app pool but while browsing some pages i get this ugly message that error loading MacroEngines Script but when refresh the page no cshtml file renders easily without any errors.

    Any other suggestions on this ? 

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 25, 2014 @ 12:11
    Dennis Aaen
    0

    Hi Fuji,

    Did you make a full site publish too?

    Have you tried to add debug mode and see if you get some more information about why your MacroEngines Script got some errors?

    /Dennis

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 25, 2014 @ 12:25
    Fuji Kusaka
    0

    No i havent done a full site published and yet again forgot to add debug mode. I will try debug mode first

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 26, 2014 @ 13:40
    Fuji Kusaka
    0

    Hmmm just realized inline razor doesnt give me this error message. 

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 26, 2014 @ 15:31
    Dennis Aaen
    0

    Hi Fuji,

    Okay hmm did you also try a full site publish or could it be the next step?

    /Dennis

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 26, 2014 @ 18:43
    Fuji Kusaka
    0

    Well i tried publishing the whole website again but it says too many redirects on the pop up percentage. 

    Btw this is a multilingual website, actually 5 languages where each contains 350 pages.

    What is weird is inline razor does crash at all .

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 27, 2014 @ 11:11
    Fuji Kusaka
    0

    Dennis, here is what i did but still no sucess,

    Stop App Pool then remvoe all files under App_Data/Temp, restart App Pool and Publish Entire Site.

    Is there something else to do ? 

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 27, 2014 @ 11:30
    Dennis Aaen
    0

    Hi Fuji,

    It sounds odd to me that you Razor files works just fine when you´re using inline Razor, but the thows an error if you are using the same razor script just in a  maco

    For now I'm empty of suggestions that you could try. If I get some, I will write them to you.

    /Dennis

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 27, 2014 @ 11:49
    Fuji Kusaka
    0

    I speak too fast!! .... i just try removing cshtml file where it throws an error and guess what ? even inline razor is throwing Errors.

     

  • Pasang Tamang 258 posts 458 karma points
    Mar 27, 2014 @ 15:12
    Pasang Tamang
    0

    Hi Fuji,

    Same happens with me in some of my sites. Macro script always shows error loading message but the template razor scripts works fine. It was because of server configuration. My sites were in windows server 2003. When process and memory usage grows up then macro scripts won't load. So later I changed my server into Windows server 2008 and hosted the same files without any changes. Till now running smoothly.

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 28, 2014 @ 06:42
    Fuji Kusaka
    0

    Hi Pasang,

     

    We are actually running under windows server 2008. This morning i just noticed some of the scripts just own load but not displaying any error. 

    Once we publish the a page the razor file just start working again.

Please Sign in or register to post replies

Write your reply to:

Draft