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 31:                 string[] sarry = clintvat.Split(',');
Line 32:                 stateid = sarry[0];
Line 33:                 statename = sarry[1];
Line 34:             }
Line 35:             Literal1.Text = statename + " " + "VAT";

Source File: c:\hostingspaces\sahilrastogi\sahilrastogi.com\wwwroot\StatesVAT.aspx.cs    Line: 33

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   StatesVAT.Page_Load(Object sender, EventArgs e) in c:\hostingspaces\sahilrastogi\sahilrastogi.com\wwwroot\StatesVAT.aspx.cs:33
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +137
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2524


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975