Server Error in '/' Application.

Erro ao spAdminObterEvento: Object reference not set to an instance of an object.

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.Exception: Erro ao spAdminObterEvento: Object reference not set to an instance of an object.

Source Error:


Line 31:         {
Line 32:             EventoBLL eventoBLL = new EventoBLL();
Line 33:             evento = eventoBLL.ObterEvento(idEvento);
Line 34:         }
Line 35:         else

Source File: c:\Inetpub\vhosts\amigoanimal.org.br\httpdocs\Evento.aspx.cs    Line: 33

Stack Trace:


[Exception: Erro ao spAdminObterEvento: Object reference not set to an instance of an object.]
   AdminDAL.EventoDAL.ObterEvento(Int64 idEvento) in C:\Users\richards\source\repos\AmigoAnimal\AmigoAnimal\AdminDAL\EventoDAL.cs:39
   Evento_Page.PreencherEventoDaQueryString() in c:\Inetpub\vhosts\amigoanimal.org.br\httpdocs\Evento.aspx.cs:33
   Evento_Page.Page_Load(Object sender, EventArgs e) in c:\Inetpub\vhosts\amigoanimal.org.br\httpdocs\Evento.aspx.cs:15
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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