Questions tagged as 'excepciones'

3
answers

NullReferenceException was not controlled

I am developing an application with C #, but it gives me the following error:    NullReferenceException was not monitored       Object reference not set as an instance of an object as you can see in this image: How can I solve t...
asked by 04.08.2017 / 16:05
1
answer

How to connect to PostrGreSQL with a python script?

I want to connect to a database with a Python script but I have a problem doing it. I use Psycopg but it returns an exception. Here is the script: #!/usr/bin/python # # Pequeno script para connectarme a PostgreSQL con Pyscopg # import psycopg...
asked by 18.05.2017 / 11:58
1
answer

Doubts about exceptions in their own mvc pattern

Recently, I wanted to create my own framework using the MVC pattern to test my skills. (Clarification, it is developed in php and mysql is used for BD) My framework has the following architecture: In summary: From an instantaneous i...
asked by 07.04.2017 / 21:59
1
answer

Windows Form: xlWorkBook.SaveAs

I am starting in the world of programming, and I have made a simple application, which is composed of a combobox (called cmbItemsEquipos), and when using the reference in excel to save the XLS file, I throw error. String NameFile = String.Form...
asked by 07.03.2017 / 15:26
1
answer

Problem with ResultSet in Java

I am working with MySQL in Java and when I do querys I formulate them in a general way, I prepare them and execute them. When I get the ResultSet I give it to a method that processes it (Command Pattern), but when the response is obtai...
asked by 20.01.2017 / 19:51
2
answers

Exceptions with different executions

I have a question with the exceptions, in this exercise we ask that 2 exceptions be considered: One that reports on the problem (and that does not stop the execution of the program, is what I understand), and another that does produce a interrup...
asked by 01.10.2016 / 05:13
0
answers

How to resolve System.TypeInitializationException?

I have a static class namespace Metropolitano { public static class Rutas { public static SAlimentadora AlimentadoraSur = new SAlimentadora(); private static BAlimentador Cedros02 = new BAlimentador(); private static BAlimentador V...
asked by 20.10.2016 / 19:16
1
answer

error showing a jasperreport pdf java.io.FileNotFoundException

Hello everyone, I have the following problem: At the moment of wanting to show my jasperreport the "PDF", I get the following error java.io.FileNotFoundException when I place the path String path = "prueba.jasper"; or whe...
asked by 04.06.2018 / 19:56
2
answers

Unable to Send Mail [duplicate]

Good this is my code: MailMessage msg = new MailMessage(); msg.To.Add(new MailAddress("[email protected]")); msg.From = new MailAddress("[email protected]"); msg.Subject = "Asunto(Correo Prueba)"; msg.Body = "Contenido Prueba"; msg.IsBod...
asked by 11.09.2018 / 20:14
2
answers

Why do not you let me do a casting?

How about, I'm trying to represent a function in java and create a class to represent sine, cos etc ... that is a child of the class Term, then I store each term in an ArrayList. The problem is that when executing send me this exception Ex...
asked by 17.01.2018 / 23:12