Problem in running the program in Microsoft.NET

Asked By 60 points N/A Posted on -
qa-featured

Hi good day and I have a problem in running the program in Microsoft.NET and the error is of type unhandled Exception and is as follows:

Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.

An exception occurred during the operation, making the result invalid. Check Inner Exception for exception details.

SHARE
Answered By 0 points N/A #154822

Problem in running the program in Microsoft.NET

qa-featured

Hello,

I have faced this error for thousand times. This is a simple error with crucial problem in your coding. This error is occurring due to unhandled exceptions. I will explain with an example. Then you have to analyze the code manually or using break points to find the place that has the error.

This error is occurring following kind of places.

Let’s think you have a form which allows you to enter a numeric (number) value. Let’s say it has field to enter a year of birth. Then you have to take this in to DOUBLE or INT variable.

You write code using INT variable. But when the application run if you give some text value to the text box instead of number and try to execute further this error will definitely occurred. Because of the INT variable cannot store string value.

So that is an exception. Then in order to avoid this situation you have to validate the text box that it should not allow to enter characters in to the text box. 

Related Questions