romasha ali

romasha ali

  • NA
  • 94
  • 38.3k

to resolve An Exception

Sep 20 2013 3:54 PM

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 15:             cap.width = 250;//200;
Line 16:             cap.height = 50;//50;
Line 17:             cap.text = this.Session["CaptchaText"].ToString();
Line 18:             cap.GenerateImage();
Line 19: 

Source File: c:\Users\Romesha\Documents\Visual Studio 2012\Projects\captcha\captcha\WebForm2.aspx.cs    Line: 17

Answers (1)