I recently migrated a "staging" version of a website using 4.7.2 to a "live" version by changing the host headers in IIS to reflect the live website. The old "live" version thus became outdated and has gone away. Well, I do not know if that had anything to do with the error I am getting, but I thought I would include it.
Now, when I try to open a cshtml scripting file within the backend to edit it, I get an error. The error is pasted below. I have tried searching relentlessly for an answer and I am unable to find one. Now, the frontend of the website appears to be functioning as it should.
Does anyone have any idea on what to do here?
Thanks in advance, John
Server Error in '/' Application.
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.]
System.Collections.Generic.Enumerator.MoveNext() +75
umbraco.cms.businesslogic.macro.MacroEngineFactory.GetSupportedUILanguages() +358
umbraco.cms.presentation.developer.editPython.validScriptingExtensions() +57
umbraco.cms.presentation.developer.editPython.OnInit(EventArgs e) +207
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
My first thought is to check if you have a copy of "umbraco.MacroEngines.dll" in your /bin folder? (or make sure that it's the correct one for your version of Umbraco (v4.7.2).
Failing that, I'm not too sure - take a look in the "umbracoLog" database table, see if there's any warning signs in there.
Error opening cshtml scripting file in backend.
I recently migrated a "staging" version of a website using 4.7.2 to a "live" version by changing the host headers in IIS to reflect the live website. The old "live" version thus became outdated and has gone away. Well, I do not know if that had anything to do with the error I am getting, but I thought I would include it.
Now, when I try to open a cshtml scripting file within the backend to edit it, I get an error. The error is pasted below. I have tried searching relentlessly for an answer and I am unable to find one. Now, the frontend of the website appears to be functioning as it should.
Does anyone have any idea on what to do here?
Thanks in advance,
John
Server Error in '/' Application.
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Hi John, welcome to the forum.
My first thought is to check if you have a copy of "umbraco.MacroEngines.dll" in your /bin folder? (or make sure that it's the correct one for your version of Umbraco (v4.7.2).
Failing that, I'm not too sure - take a look in the "umbracoLog" database table, see if there's any warning signs in there.
Cheers, Lee.
is working on a reply...