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:


Line 1295:                {
Line 1296:
Line 1297:                    menulingua += " | <a rel='alternate' hreflang='" + linguas + "' href=\"" + mieurl[0][linguas] + "\">" + linguas + "</a> ";
Line 1298:                }
Line 1299:                else menulingua += " | <a rel='alternate' hreflang='" + linguas + "' ><b>" + linguas + "</b></a> ";

Source File: c:\WEBFARM_MILITARIA\localuser\ftpinfabbrica\App_Code\custom.cs    Line: 1297

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   custom.site_header(String titolo, String pagina, Boolean show_menu, Boolean show_search, Boolean show_cart, String c1, Boolean cercacart, String tipo) in c:\WEBFARM_MILITARIA\localuser\ftpinfabbrica\App_Code\custom.cs:1297
   page.Page_Load(Object sender, EventArgs e) in c:\WEBFARM_MILITARIA\localuser\ftpinfabbrica\page.aspx.cs:48
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0