Server Error in '/' Application.

Index 0 is either negative or above rows count.

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 0 is either negative or above rows count.

Source Error:


Line 215:                    break;
Line 216:                case "4":
Line 217:                    wheader = Convert.ToString(dvwww[0]["name_" + Config.LangSite]) + " / " + Convert.ToString(GetGlobalResourceObject("Lang", "key125"));
Line 218:                    wpic = filedirectory + Config.ConvertStrFile(dvwww[0]["pic_" + Config.LangSite]);
Line 219:                    wtextsub = Convert.ToString(dvwww[0]["elm_sah_" + Config.LangSite]);

Source File: c:\inetpub\wwwroot\jomardpublishing.com\public_html\journals.aspx.cs    Line: 217

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +2209880
   System.Data.DataView.get_Item(Int32 recordIndex) +17
   journals.loadjournalsresult(String wid, String wmenu, String wtype, String winfo) in c:\inetpub\wwwroot\jomardpublishing.com\public_html\journals.aspx.cs:217
   journals.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\jomardpublishing.com\public_html\journals.aspx.cs:52
   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.4676.0