Server Error in '/' Application.

Value cannot be null.
Parameter name: source

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.ArgumentNullException: Value cannot be null.
Parameter name: source

Source Error:


Line 193:    void bind()
Line 194:    {
Line 195:        rptPics.DataSource = new ProductsService().getProductPic(id);
Line 196:        rptPics.DataBind();
Line 197:

Source File: d:\Inetpub\vhosts\padidehestakhr.com\httpdocs\proDetail.aspx.cs    Line: 195

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.OrderedEnumerable`2..ctor(IEnumerable`1 source, Func`2 keySelector, IComparer`1 comparer, Boolean descending) +6235902
   System.Linq.Enumerable.OrderByDescending(IEnumerable`1 source, Func`2 keySelector) +82
   Service.ProductsService.getProductPic(Int32 id) in H:\0001CMS\0006Web_Site_1400\1400_07_11_Padide_Estakhr_UPV2\Service\ProductsService.cs:434
   proDetail.bind() in d:\Inetpub\vhosts\padidehestakhr.com\httpdocs\proDetail.aspx.cs:195
   proDetail.Page_Load(Object sender, EventArgs e) in d:\Inetpub\vhosts\padidehestakhr.com\httpdocs\proDetail.aspx.cs:35
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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