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 216:        Param = "x=" & Convert.ToInt32(ConvertXInchtoPDFUnit(var_X_Pos)) & "; y=" & Convert.ToInt32(ConvertYInchtoPDFUnit(Bill_to_Ypos)) & "; width=" & Convert.ToInt32(ConvertXInchtoPDFUnit(var_Width)) & ", Size=12; Alignment=Left;"
Line 217:        DisplayText = var_Age
Line 218:        objPage.canvas.DrawText(DisplayText, Param, objFont)
Line 219:
Line 220:        Bill_to_Ypos = Bill_to_Ypos + Bill_to_YPace

Source File: C:\htdocs\CaliforniaTripleCrown.org\Rider_History_Pages\Make_PDF\A_Create_Rider_History.vb    Line: 218

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Persits.PDF.PdfCanvas.ReshapeArabic(String Text, String& bstrText) +14
   Persits.PDF.PdfCanvas.DrawText(String Text, Object Param, PdfFont Font) +108
   Create_Rider_History_PDF.Create_Web_Order_Bill_Info_PDF(Int32 Rider_ID) in C:\htdocs\CaliforniaTripleCrown.org\Rider_History_Pages\Make_PDF\A_Create_Rider_History.vb:218
   ASP.rider_history_pages_make_pdf_a_create_rider_history_aspx.Page_Load(Object Source, EventArgs E) in C:\htdocs\CaliforniaTripleCrown.org\Rider_History_Pages\Make_PDF\A_Create_Rider_History.aspx:11
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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