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 125:
Line 126:                                    //override the pagebasics of this page!
Line 127:                                    CurrentPB = resource.First().pb != null ? resource.First().pb : bl.Pb;
Line 128:                                    usercontrol.InitBl(resource);
Line 129:                                }

Source File: d:\spaces\promoter\banknadlan.co.il\wwwroot\Project.aspx.cs    Line: 127

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.Enumerable.First(IEnumerable`1 source) +344
   Project.Page_Load(Object sender, EventArgs e) in d:\spaces\promoter\banknadlan.co.il\wwwroot\Project.aspx.cs:127
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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