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 46:             user.Usuario_Logado = False
Line 47:             Dim _json As String = New JavaScriptSerializer().Serialize(user)
Line 48:             cookie.Value = HttpUtility.UrlEncode(_json)
Line 49:             pagina.Request.Cookies(ChaveLogin + comando).Values.Clear()
Line 50:             cookie.Expires = DateTime.Now.AddMonths(PrazoDuracaoLoginMeses)

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

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:48
   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) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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