Server Error, HTTP 500: Unhandled exception occurred

System.NullReferenceException: Object reference not set to an instance of an object.



System.NullReferenceExceptionObject reference not set to an instance of an object.

async Task MDSport.ViewModels.Inscricao.DefaultViewModel.PreRender()

Source File: C:\Users\Joel\source\repos\repos\MultiSport.APP\Backup\live - 13.03.2022\MDSport\ViewModels\Inscricao\DefaultViewModel.cs +74

async Task DotVVM.Framework.ViewModel.DotvvmViewModelBase.DotVVM.Framework.ViewModel.IDotvvmViewModel.PreRender()
async Task DotVVM.Framework.Hosting.DotvvmPresenter.ProcessRequestCore(IDotvvmRequestContext context)
async Task DotVVM.Framework.Hosting.DotvvmPresenter.ProcessRequestCore(IDotvvmRequestContext context)
async Task DotVVM.Framework.Hosting.DotvvmPresenter.ProcessRequest(IDotvvmRequestContext context)
async Task<bool> DotVVM.Framework.Hosting.Middlewares.DotvvmRoutingMiddleware.Handle(IDotvvmRequestContext context)
async Task<bool> DotVVM.Framework.Hosting.Middlewares.DotvvmRoutingMiddleware.Handle(IDotvvmRequestContext context)
async Task DotVVM.Framework.Hosting.DotvvmMiddleware.Invoke(IOwinContext context)

Source File: D:\ba\_work\44\s\src\DotVVM.Framework.Hosting.Owin\Hosting\Middlewares\DotvvmMiddleware.cs +55

async Task DotVVM.Framework.Hosting.Middlewares.DotvvmErrorPageMiddleware.Invoke(IOwinContext context)

Source File: D:\ba\_work\44\s\src\DotVVM.Framework.Hosting.Owin\Hosting\Middlewares\DotvvmErrorPageMiddleware.cs +26

System.NullReferenceExceptionObject reference not set to an instance of an object.

MDSport.ViewModels.Inscricao.DefaultViewModel+<PreRender>d__67.MoveNext()

Source File: C:\Users\Joel\source\repos\repos\MultiSport.APP\Backup\live - 13.03.2022\MDSport\ViewModels\Inscricao\DefaultViewModel.cs +74

System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
DotVVM.Framework.ViewModel.DotvvmViewModelBase+<DotVVM-Framework-ViewModel-IDotvvmViewModel-PreRender>d__6.MoveNext()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
DotVVM.Framework.Hosting.DotvvmPresenter+<ProcessRequestCore>d__26.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
DotVVM.Framework.Hosting.DotvvmPresenter+<ProcessRequestCore>d__26.MoveNext()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
DotVVM.Framework.Hosting.DotvvmPresenter+<ProcessRequest>d__25.MoveNext()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
DotVVM.Framework.Hosting.Middlewares.DotvvmRoutingMiddleware+<Handle>d__3.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
DotVVM.Framework.Hosting.Middlewares.DotvvmRoutingMiddleware+<Handle>d__3.MoveNext()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
DotVVM.Framework.Hosting.DotvvmMiddleware+<Invoke>d__4.MoveNext()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
DotVVM.Framework.Hosting.Middlewares.DotvvmErrorPageMiddleware+<Invoke>d__5.MoveNext()
Variable Value
Variable Value
ConnectionKeep-Alive
Accept*/*
Hostmultisport.pt
Max-Forwards9
User-Agentclaudebot
X-Original-URL/Eventos/5
X-Forwarded-For54.173.214.79:50258, 192.168.51.146:61292
X-ARR-LOG-ID1bd55873-7f8e-4c3e-8244-2b538d80c819
X-ORIGINAL-HOSTmultisport.pt
X-FRONT-ARR-SSL2048|256|C=LV, L=Riga, O=GoGetSSL, CN=GoGetSSL RSA DV CA|CN=*.multisport.pt
X-FORWARDED-PROTOhttps
Variable Value
owin.Version1.0
owin.CallCancelledSystem.Threading.CancellationToken
owin.RequestProtocolHTTP/1.1
owin.RequestMethodGET
owin.RequestSchemehttps
owin.RequestPathBase
owin.RequestPath/Eventos/5
owin.RequestQueryString
owin.RequestHeadersMicrosoft.Owin.Host.SystemWeb.CallHeaders.AspNetRequestHeaders
owin.RequestBodyMicrosoft.Owin.Host.SystemWeb.CallStreams.InputStream
owin.RequestId00000000-0000-0000-0000-000000000000
server.DisableRequestBufferingSystem.Action
owin.ResponseStatusCode500
owin.ResponseReasonPhraseInternal Server Error
owin.ResponseHeadersMicrosoft.Owin.Host.SystemWeb.CallHeaders.AspNetResponseHeaders
owin.ResponseBodyMicrosoft.Owin.Host.SystemWeb.CallStreams.OutputStream
server.DisableResponseBufferingSystem.Action
host.TraceOutputMicrosoft.Owin.Host.SystemWeb.CallEnvironment.TraceTextWriter
host.AppNameb6ebeb4a0.hostnd/LM/W3SVC/2000266709/ROOT
host.OnAppDisposingSystem.Threading.CancellationToken
systemweb.DisableResponseCompressionSystem.Action
server.UserSystem.Security.Principal.WindowsPrincipal
server.OnSendingHeadersSystem.Action`2[System.Action`1[System.Object],System.Object]
server.CapabilitiesSystem.Collections.Concurrent.ConcurrentDictionary`2[System.String,System.Object]
server.RemoteIpAddress54.173.214.79
server.RemotePort50258
server.LocalIpAddress192.168.51.203
server.LocalPort443
server.IsLocalFalse
ssl.LoadClientCertAsyncSystem.Func`1[System.Threading.Tasks.Task]
sendfile.SendAsyncSystem.Func`5[System.String,System.Int64,System.Nullable`1[System.Int64],System.Threading.CancellationToken,System.Threading.Tasks.Task]
integratedpipeline.ContextMicrosoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext
integratedpipeline.CurrentStagePreHandlerExecute
System.Web.Routing.RequestContextSystem.Web.Routing.RequestContext
System.Web.HttpContextBaseSystem.Web.HttpContextWrapper
security.AuthenticateSystem.Func`4[System.String[],System.Action`4[System.Security.Principal.IIdentity,System.Collections.Generic.IDictionary`2[System.String,System.String],System.Collections.Generic.IDictionary`2[System.String,System.Object],System.Object],System.Object,System.Threading.Tasks.Task]
Microsoft.Owin.Cookies#dictionarySystem.Collections.Generic.Dictionary`2[System.String,System.String]
Microsoft.Owin.Query#dictionarySystem.Collections.Generic.Dictionary`2[System.String,System.String[]]
Microsoft.Owin.Query#text
DotVVM.Framework.Hosting.IHttpContextDotVVM.Framework.Hosting.DotvvmHttpContext
dotvvm.requestContextDotVVM.Framework.Hosting.DotvvmRequestContext