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 10:         // session daki bilgi ile resmi olußturuyoruz
Line 11:         all all = new all();
Line 12:         DogrulamaKodu ci = new DogrulamaKodu(all.GET_COOKIE("CaptchaMetin"), 190, 50);
Line 13: 
Line 14:         context.Response.Clear();

Source File: c:\inetpub\vhosts\durucar.com.tr\httpdocs\resim-dogrulama.ashx    Line: 12

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   System.Drawing.Drawing2D.GraphicsPath.AddString(String s, FontFamily family, Int32 style, Single emSize, Rectangle layoutRect, StringFormat format) +90
   ResimDogrula.DogrulamaKodu.ResimOlustur() in C:\Users\sedat\source\Workspaces\kolayCAR.Api\kolayCARLibrary-web-NEW-URL\DogrulamaKodu.cs:164
   ResimDogrula.DogrulamaKodu..ctor(String s, Int32 width, Int32 height) in C:\Users\sedat\source\Workspaces\kolayCAR.Api\kolayCARLibrary-web-NEW-URL\DogrulamaKodu.cs:54
   JpegImage.ProcessRequest(HttpContext context) in c:\inetpub\vhosts\durucar.com.tr\httpdocs\resim-dogrulama.ashx:12
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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