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 100:
Line 101:                List<Zona> zonasSubservicio = clsSubservicio.ZonasSubservicio(losSubservicios);
Line 102:                rpZonas.DataSource = zonasSubservicio.OrderBy(x => x.NombreZona);
Line 103:                rpZonas.DataBind();
Line 104:                pnlZonas.Visible = true;

Source File: c:\inetpub\vhosts\imqbienstar.es\app\listaServiciosTipo.aspx.cs    Line: 102

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) +6472168
   System.Linq.Enumerable.OrderBy(IEnumerable`1 source, Func`2 keySelector) +77
   es_index.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\vhosts\imqbienstar.es\app\listaServiciosTipo.aspx.cs:102
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +11906436
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


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