Server Error in '/' Application.

Nesne başvurusu bir nesnenin örneğine ayarlanmadı.

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.NullReferenceException: Nesne başvurusu bir nesnenin örneğine ayarlanmadı.

Source Error:


Line 92:         UR.Add(new csUrun() { UrunAdiTr = U.UrunAdiTr, UrunAdiEn = U.UrunAdiEn, Resim = U.Resim });
Line 93: 
Line 94:         string Kategoriler = U.Kategoriler.Substring(1, U.Kategoriler.Length - 2);
Line 95:         for (int i = 0; i < Kategoriler.Split(',').Length; i++)
Line 96:         {

Source File: f:\root\vhosts\istanbulcelikkapi.com.tr\httpdocs\Urun_Detay.aspx.cs    Line: 94

Stack Trace:


[NullReferenceException: Nesne başvurusu bir nesnenin örneğine ayarlanmadı.]
   Urun_Detay.UrunTekAl(Int32 _UrunID) in f:\root\vhosts\istanbulcelikkapi.com.tr\httpdocs\Urun_Detay.aspx.cs:94
   Urun_Detay.Page_Load(Object sender, EventArgs e) in f:\root\vhosts\istanbulcelikkapi.com.tr\httpdocs\Urun_Detay.aspx.cs:20
   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.4676.0