System.NullReferenceException: Object reference not set to an instance of an object. at Admin100.DAL.Helpers.Rewriter.<>c__DisplayClass11_0.b__0(instances_configurations m) in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/Admin100.DAL/Helpers/RewriterHelper.cs:line 163 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found) at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Admin100.DAL.Helpers.Rewriter.ForSectorNoClients(sectors_instances sectorInstance) at PortalAldia.Client.Controllers.SectorsController.View(String sector_name, Boolean show_no_client) in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/PortalAldia.Client/Controllers/SectorsController.cs:line 142 at lambda_method(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at PortalAldia.Client.Startup.<>c.<b__6_0>d.MoveNext() in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/PortalAldia.Client/Startup.cs:line 296 --- End of stack trace from previous location where exception was thrown --- at PortalAldia.Client.Middlewares.CountryMiddleware.Invoke(HttpContext httpContext) in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/PortalAldia.Client/Middlewares/CountryMiddleware.cs:line 89 at PortalAldia.Client.Middlewares.OriginMiddleware.Invoke(HttpContext httpContext) in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/PortalAldia.Client/Middlewares/OriginMiddleware.cs:line 95 at PortalAldia.Client.Middlewares.InstanceMiddleware.Invoke(HttpContext httpContext) in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/PortalAldia.Client/Middlewares/InstanceMiddleware.cs:line 76 at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) HEADERS ======= Connection: Keep-Alive Accept: */* Host: www.franquiciasaldia.com.mx User-Agent: claudebot X-Forwarded-Host: www.franquiciasaldia.com.mx X-Forwarded-Server: franquiciasaldia.com.mx X-Original-For: [::ffff:127.0.0.1]:37588