1

Why do I get a Server Error in '/front' Application when saving test as PDF

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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]

iTextSharp.text.html.simpleparser.HTMLWorker.CreateLineSeparator(IDictionary 2 attrs) +13
iTextSharp.text.html.simpleparser.HTMLTagProcessor_HR.StartElement(HTMLWorker worker, String tag, IDictionary
2 attrs) +25

iTextSharp.text.html.simpleparser.HTMLWorker.StartElement(String tag, IDictionary 2 attrs) +84
iTextSharp.text.xml.simpleparser.SimpleXMLParser.ProcessTag(Boolean start) +31
iTextSharp.text.xml.simpleparser.SimpleXMLParser.Go(TextReader reader) +1160
iTextSharp.text.xml.simpleparser.SimpleXMLParser.Parse(ISimpleXMLDocHandler doc, ISimpleXMLDocHandlerComment comment, TextReader r, Boolean html) +48
iTextSharp.text.html.simpleparser.HTMLWorker.Parse(TextReader reader) +39
iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(TextReader reader, StyleSheet style, IDictionary
2 tags, Dictionary 2 providers) +91
iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(TextReader reader, StyleSheet style, Dictionary
2 providers) +11

iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(TextReader reader, StyleSheet style) +7

AS.Frontside.Helpers.HtmlToPdfBuilder.RenderPdf() in e:\Hudson\jobs\Frontside Beta\workspace\AS.Frontside\Helpers\HtmlToPdfBuilder.cs:232

AS.Frontside.Modules.Testing.Controllers.TestingUserTestController.PrintPDFReview(Int64 userTestId) in e:\Hudson\jobs\Frontside Beta\workspace\Modules\AS.Frontside.Testing\Controllers\TestingUserTestController.cs:380

lambda_method(Closure , ControllerBase , Object[] ) +100

System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14

System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary 2 parameters) +203
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
2 parameters) +27

System.Web.Mvc.<>c_DisplayClass13.<InvokeActionMethodWithFilters>b10() +55

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +270

System.Web.Mvc.<>c
DisplayClass15.<InvokeActionMethodWithFilters>b12() +22

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +270

System.Web.Mvc.<>c
DisplayClass15.<InvokeActionMethodWithFilters>b12() +22

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +270

System.Web.Mvc.<>c
DisplayClass15.<InvokeActionMethodWithFilters>b12() +22

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +270

System.Web.Mvc.<>c
DisplayClass15.<InvokeActionMethodWithFilters>b12() +22

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +270

System.Web.Mvc.<>c
DisplayClass15.<InvokeActionMethodWithFilters>b12() +22

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +270

System.Web.Mvc.<>c
DisplayClass15.<InvokeActionMethodWithFilters>b12() +22

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList 1 filters, ActionDescriptor actionDescriptor, IDictionary 2 parameters) +200

System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +340

System.Web.Mvc.<>c
DisplayClass1d.<BeginExecuteCore>b19() +30

System.Web.Mvc.Async.<>c
DisplayClass1.<MakeVoidDelegate>b0() +19

System.Web.Mvc.Async.<>c
DisplayClass8`1.<BeginSynchronous>b7(IAsyncResult _) +10

System.Web.Mvc.Async.WrappedAsyncResult`1.End() +52

System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +28

System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15

System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44

System.Web.Mvc.Async.<>c
DisplayClass4.<MakeVoidDelegate>b3(IAsyncResult ar) +23

System.Web.Mvc.Async.WrappedAsyncResult`1.End() +52

System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +28

System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15

System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +30

System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10

System.Web.Mvc.<>c
DisplayClass8.<BeginProcessRequest>b3(IAsyncResult asyncResult) +25

System.Web.Mvc.Async.<>c
DisplayClass4.<MakeVoidDelegate>b_3(IAsyncResult ar) +23

System.Web.Mvc.Async.WrappedAsyncResult`1.End() +52

System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +28

System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15

System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31

System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1559

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1068

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1331

2 comments

Please sign in to leave a comment.