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 28:             End Select
Line 29: 
Line 30:             rptTiSinantisame.DataSource = (From item In Project.Photos Where item.Type = 1 Select item).ToList
Line 31:             rptTiSinantisame.DataBind()
Line 32:             rptProetimasia.DataSource = (From item In Project.Photos Where item.Type = 2 Select item).ToList

Source File: C:\inetpub\wwwroot\WebSites\WithDataBase\A-monotextniki.gr\WebSite\Project.aspx.vb    Line: 30

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.Enumerable.Where(IEnumerable`1 source, Func`2 predicate) +4893646
   Project.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\WebSites\WithDataBase\A-monotextniki.gr\WebSite\Project.aspx.vb:30
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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