Server Error in '/' Application.

Object reference not set to an instance of an object.

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: Object reference not set to an instance of an object.

Source Error:


Line 697:            {
Line 698:            }            
Line 699:            similarTracks.Add(new similarTrack(int.Parse(dRow["trackID"].ToString()), score));
Line 700:        }
Line 701:        similarTracks = (from t in similarTracks orderby t.rank descending select t).Take(5).ToList();

Source File: c:\sajtovi\Clarion\our-music\tracks\Detail.aspx.cs    Line: 699

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   our_music_composers_Detail.getSimilarTracks(Int32 trackID, String keywords, String filters) in c:\sajtovi\Clarion\our-music\tracks\Detail.aspx.cs:699
   our_music_composers_Detail.GetTrack() in c:\sajtovi\Clarion\our-music\tracks\Detail.aspx.cs:660
   our_music_composers_Detail.Page_Load(Object sender, EventArgs e) in c:\sajtovi\Clarion\our-music\tracks\Detail.aspx.cs:125
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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