I am getting the following Exception when I call ASPXToPDF.RenderAsPDF(false) followed by Response.Redirect("AnotherForm.aspx"):
Server Error in '/' Application.
Value cannot be null.
Parameter name: type
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.ArgumentNullException: Value cannot be null.
Parameter name: type
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:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +7469126
System.Activator.CreateInstance(Type type) +6
EO.Web.Internal.dg.a() +28
EO.Web.ASPXToPDF.a(String A_0, Stream A_1) +74
EO.Web.Internal.ms.a(b[] A_0) +109
EO.Web.Internal.a.Close() +61
System.Web.HttpWriter.Filter(Boolean finalFiltering) +69
System.Web.HttpResponse.FilterOutput() +82
System.Web.ApplicationStepManager.ResumeSteps(Exception error) +501
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +123
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +379
Code: C#
C# Code:
protected void submit_Click(object sender, EventArgs e)
{
ASPXToPDF.RenderAsPDF(false);
Response.Redirect("AnotherForm.aspx");
}
Please help me determine the cause of this exception. Thanks in advance!