Server Error in '/' Application.

startIndex cannot be larger than length of string.
Parameter name: startIndex

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: startIndex cannot be larger than length of string.
Parameter name: startIndex

Source Error:


Line 31:         else
Line 32:         {
Line 33:             gelen = link.Substring(43);
Line 34:         }
Line 35: 

Source File: c:\inetpub\vhosts\mav.mochahosted.com\fenmuhendislik.com.tr\urun-detay.aspx.cs    Line: 33

Stack Trace:


[ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex]
   System.String.Substring(Int32 startIndex, Int32 length) +13148821
   System.String.Substring(Int32 startIndex) +16
   urun_detay.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\mav.mochahosted.com\fenmuhendislik.com.tr\urun-detay.aspx.cs:33
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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