I'm trying to use the AcroForm Fill capability using ASP.Net 2.0 Beta 2. When I run the code below with the PDF file that came with the examples, it works fine. However, when I run the same code with the fillable-PDF that my client provided to me, I get the following error. Does this indicate the PDF format they gave me can't be used or some other type of error?
Thanks,
Kevin
Server Error in '/XYZ' Application.
-------------------------------------------------------------------
Unable to cast object of type 'zz93.au' to type 'zz93.o'.
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.InvalidCastException: Unable to cast object of type 'zz93.au' to type 'zz93.o'.
Source Error:
Line 12: ' Create a document and set it's properties
Line 13: 'Dim MyDocument As MergeDocument = New MergeDocument(MapPath("resources/fw9AcroForm_03.pdf"), options)
Line 14: Dim MyDocument As MergeDocument = New MergeDocument(MapPath("resources/xyz.pdf"), options)
Line 15: MyDocument.Creator = "XYZ.aspx"
Line 16: MyDocument.Author = "XYZ"
Source File: D:\Websites\XYZ\xyz.aspx.vb Line: 14
Stack Trace:
[InvalidCastException: Unable to cast object of type 'zz93.au' to type 'zz93.o'.]
ceTe.DynamicPDF.Merger.Forms.PdfFormField..ctor(a A_0, PdfForm A_1, Int32 A_2, PdfFormField A_3, u A_4) +821
ceTe.DynamicPDF.Merger.Forms.PdfButtonField..ctor(a A_0, PdfForm A_1, Int32 A_2, PdfFormField A_3, u A_4) +39
ceTe.DynamicPDF.Merger.Forms.PdfFormField.a(a A_0, PdfForm A_1, Int32 A_2, PdfFormField A_3, u A_4) +466
ceTe.DynamicPDF.Merger.Forms.PdfFormFieldList.a(a A_0, PdfForm A_1, PdfFormField A_2, o A_3) +116
ceTe.DynamicPDF.Merger.Forms.PdfFormFieldList..ctor(a A_0, PdfForm A_1, PdfFormField A_2, ac A_3) +145
ceTe.DynamicPDF.Merger.Forms.PdfForm..ctor(a A_0, u A_1) +476
ceTe.DynamicPDF.Merger.PdfDocument.b(a A_0) +83
ceTe.DynamicPDF.Merger.PdfDocument.c() +96
ceTe.DynamicPDF.Merger.PdfDocument..ctor(av A_0, String A_1) +96
ceTe.DynamicPDF.Merger.MergeDocument..ctor(String filePath, MergeOptions options) +52
XYZ.Page_Load(Object sender, EventArgs e) in D:\Websites\XYZ\xyz.aspx.vb:14
System.Web.UI.Control.OnLoad(EventArgs e) +80
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3695
-------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
Unable to cast object of type 'zz93.au' to type 'zz93.o'
Re:Unable to cast object of type 'zz93.au' to type 'zz93.o'
Support · Nov 9, 2005Hello Kevin,
Make sure that you have the latest evaluation build dll files from our web site and try running the example again.
If you continue getting the same exception, then please send us over the original PDF document with form fields you are trying to fill to [^a|mailto:support@cete.com|Support^] and we will do some testing on our end and see if the problem is in the PDF document or within our product.
Thanks,
ceTe Software Support Team.
Re:Unable to cast object of type 'zz93.au' to type 'zz93.o'
Forum member · Nov 9, 2005Thanks for the quick reply. I just downloaded the install within the last 48 hours so I assume that's the latest. I'll send the PDF file via email to your support address. Thanks for helping me out with this.