Server Error in '/DATACENTER' Application.

Index and length must refer to a location within the string.
Parameter name: length

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.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length

Source Error:

Line 241:            case 4:
Line 242:                string substr = value.ToString();
Line 243:                if (substr.Substring(0, 1) == "\"")
Line 244:                    substr = substr.Remove(0, 1);
Line 245:                if (substr.Substring(substr.Length - 1, 1) == "\"")

Source File: d:\stockstar\resourceweb\DataCenter\PrivateData\GetRHREPORTALL.aspx.cs    Line: 243

Stack Trace:

[ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +9386639
   System.String.Substring(Int32 startIndex, Int32 length) +11
   stockdata_GetRHREPORT.FormatField(Object value, Int32 type, Int32 bdcount, Boolean havebfh, String dtFormatStr) in d:\stockstar\resourceweb\DataCenter\PrivateData\GetRHREPORTALL.aspx.cs:243
   stockdata_GetRHREPORT.GetStockholderCountByCodes() in d:\stockstar\resourceweb\DataCenter\PrivateData\GetRHREPORTALL.aspx.cs:448
   ASP.privatedata_getrhreportall_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\stockstar\resourceweb\DataCenter\PrivateData\GetRHREPORTALL.aspx:132
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060


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

澳门博彩官网