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 28:             UmbracoHelper umbHelper = new UmbracoHelper(UmbracoContext.Current);
Line 29:             var node = umbHelper.TypedContent(pageID);
Line 30:             var url = umbraco.library.NiceUrlWithDomain(node.Id);
Line 31:             var filename = Regex.Replace(node.UrlName, "[^-0-9a-zA-Z]+", "", RegexOptions.Compiled);
Line 32: 

Source File: c:\inetpub\wwwroot\mercor\html2PDF.ashx    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   html2pdf.ProcessRequest(HttpContext context) in c:\inetpub\wwwroot\mercor\html2PDF.ashx:30
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +6839
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +2913


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