System.InvalidOperationException: Nullable object must have a value. at System.Nullable`1.get_Value() at PortalAldia.Client.Views.Components.Form_franchises.Form_franchisesViewComponent.Invoke(Nullable`1 franchise_instance_id, Nullable`1 sector_instance_id, Int32 sectorForm, FormViewModel form, String title) in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/PortalAldia.Client/Views/Shared/Components/Form_franchises/Form_franchisesViewComponent.cs:line 53 at lambda_method(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeSyncCore(ObjectMethodExecutor executor, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments) at AspNetCore.Views_Franchises_View.ExecuteAsync() in /Volumes/Datos/Diaple/Desarrollo/100franquicias/Admin/PortalAldia.Client/Views/Franchises/View.cshtml:line 80 at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result) at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|29_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- 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 Referer: https://www.franquiciasaldia.com.mx/restaurantescafeterias/franquicias/Franquicia-angus-butcher-house/ User-Agent: claudebot X-Forwarded-Host: www.franquiciasaldia.com.mx X-Forwarded-Server: franquiciasaldia.com.mx X-Original-For: [::ffff:127.0.0.1]:47922