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 .
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.
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.
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.
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 ?
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
Hi Jan,
thanks for the response. Btw its on a live website, any risks doing this online directly ? :)
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
Thanks Jan,
I will try to restart the app pool first and see how it goes. :)
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.
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
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 ?
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
No i havent done a full site published and yet again forgot to add debug mode. I will try debug mode first
Hmmm just realized inline razor doesnt give me this error message.
Hi Fuji,
Okay hmm did you also try a full site publish or could it be the next step?
/Dennis
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 .
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 ?
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
I speak too fast!! .... i just try removing cshtml file where it throws an error and guess what ? even inline razor is throwing Errors.
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.
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.
is working on a reply...