Strange error on screen, debug does not show nda

Asked

Viewed 197 times

0

inserir a descrição da imagem aqui

In Webform, this giving some error, that when debugging in Visual Studio (F5) it does not accuse any error, but when it comes out the result on the screen would be like an internal error(500) There’s no AJAX or anything like it’s just a theoretically simple page'

Doubt:

Is there any better way to debug? Is there any error that does not display the error on the screen?

web config.

 <system.web>
    <customErrors mode="Off"/>

I basically have a page Wizard.aspx

otimizacao_pontos otim = new otimizacao_pontos();
otim .TotalPontos();
EntidadeWizard iPontos = new EntidadeWizard();
iPontos = (EntidadeWizard)Session["iPontos"];

the class optimized points

        public void TotalPontos()
        {
            EntidadeWizard iPontos = new EntidadeWizard();

/// monte de códigos 
HttpContext.Current.Session["iPontos"] = iPontos;

}

and the entity:

    public class EntidadeWizard
    {
        private int TotalImoveis = 0;

        public int TotalImoveis1
        {
            get { return TotalImoveis; }
            set { TotalImoveis = value; }
        }

        public int TotalImoveisFOTO { get; set; }
        public int TotalDestaque { get; set; }

        public double _E1_point { get; set; }
        public double _E2_point { get; set; }
        public double _E3_point { get; set; }
        public double _E4_point { get; set; }

        public double _E5_point { get; set; }
        public bool _E5_MailFull = false;
        public bool _E5_MailDomain = false;
        private bool _E5_Erro = false;

        public bool E5_Erro
        {
            get { return _E5_Erro; }
            set { _E5_Erro = value; }
        }

        public double _E6_point { get; set; }
        public bool _E6_Atualizado = false;

        public double _E7_point { get; set; }

        public double E7_point_Mega { get; set; }

        public double _E7_point_Mercado { get; set; }
        public double _E7_point_USA { get; set; }
        public double _E7_point_Trovit { get; set; }
        public double _E7_point_Ibiubi { get; set; }
        public double _E7_point_Fisgo { get; set; }
        public double _E7_point_Mitula { get; set; }
        public double _E7_point_Imohoo { get; set; }
        public double _E7_point_OLX { get; set; }
        public double _E7_point_Nuroa { get; set; }
        public double _E7_point_Divendo { get; set; }
        public double _E8_point { get; set; }
        private bool _E8_Correto = false;

        public bool E8_Correto
        {
            get { return _E8_Correto; }
            set { _E8_Correto = value; }
        }
        public double _E9_point { get; set; }
        public double _E9_percent { get; set; }
        public double _E10_point { get; set; }
        public double _E11_point { get; set; }
        public int _E11_Dias { get; set; }

        public double _E12_point { get; set; }
        public double _E12_percent { get; set; }

        public string _urlLogotipo { get; set; }


        private double _vTOTALInterno { get; set; }

        public double _vTOTAL
        {
            get { return _vTOTALInterno; }
            set { _vTOTALInterno = value; }
        }

        public string textMail { get; set; }

    }
}

Basically the class plays the values inside the Session and then I do Unboxing and recover the values, or should. I am checking the entity if there is a bug.. but I do not see.

  • You could post some excerpt from the code/page?

  • the code is so big, I’ll edit the question to improve.

1 answer

0


I discovered the mistake.

missing in the entity put

[Serializable]

But the strange thing is that I believe this mistake should be something like:

Não foi possível seriarializar ou o objeto não é serializável

And not a mistake like those.

  • 1

    I was having the same problem... Putting the [Serializable], it worked. Thank you.

  • da +1 in reply @Rafaeldocantocardoso if she helped you, abs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.