Arquivo: login.aspx?comando=1631503801vk - Caminho Executar https://www.ideiaspara.com.br/lojaNova/login.aspx?comando=1631503801vk&log=10 - Erro : Err 7 - Object reference not set to an instance of an object.

Server Error in '/' Application.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 48:             user.Usuario_Logado = False
Line 49:             Dim _json As String = New JavaScriptSerializer().Serialize(user)
Line 50:             cookie.Value = HttpUtility.UrlEncode(_json)
Line 51:             pagina.Request.Cookies(ChaveLogin + comando).Values.Clear()
Line 52:             cookie.Expires = DateTime.Now.AddMonths(PrazoDuracaoLoginMeses)

Source File: E:\Vhosts\ideiaspara.com.br\httpdocs\App_Code\Usuarios.vb    Line: 50

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Usuarios.Logff(Page pagina, String conexao, String comando) in E:\Vhosts\ideiaspara.com.br\httpdocs\App_Code\Usuarios.vb:50
   shopnovo_login.logoff() in E:\Vhosts\ideiaspara.com.br\httpdocs\lojaNova\login.aspx.vb:201
   shopnovo_login.Page_Load(Object sender, EventArgs e) in E:\Vhosts\ideiaspara.com.br\httpdocs\lojaNova\login.aspx.vb:67
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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