Unable to cast object of type 'zz93.gt' to type 'zz93.kt'.

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for .NET (v4)  /  Re: Unable to cast object of type 'zz93.gt' to type 'zz93.kt'.

DynamicPDF Merger for .NET (v4) Forum

Hi Dynamic PDF Team

I am getting InvalidCastException while reading PDF. Same PDF document is opening properly in acrobat reader. Below is code that I am using

protected void Page_Load(object sender, EventArgs e)
        {
            var filePath = Server.MapPath("~/test.pdf");
            //var document = new MergeDocument(filePath);
            var document = new PdfDocument(filePath);
            var mergeDocument = new MergeDocument(document);
            mergeDocument.DrawToWeb();
        }

Please help me to resolve it. I also have POC for it. But didn't find place here to attach it.

Posted by a ceTe Software moderator
Hello,

This error has been fixed in the latest build of v7. Please email support@cete.com with the url of this post and request a link to download the latest build files.

Thanks,
ceTe Software Support Team.

I appear to be having a similar difficulty:  "Unable to cast object of type 'zz93.je' to type 'zz93.cu'."

Do I need to download a new version, too?

I'm running cdTe.DynamicPDF20.dll.

My code is similar to the previous poster's:

    byte[] PDF = (byte[])Session["PDF"];
                //  add license key
    ceTe.DynamicPDF.Document.AddLicense("-- elided --");
    PdfDocument MyPdfDocument = new PdfDocument(PDF);
    MergeDocument MyDocument = new MergeDocument(MyPdfDocument);

The exception is being thrown from the final line, above.
Posted by a ceTe Software moderator
Hello,

The fix is available in the latest builds of v6 and v7. Latest build can be downloaded by logging into the customer area using the product (v6 or v7) serial number.

Thanks,
ceTe Software Support Team.
I just received this error today (April 14, 2015):
   Unable to cast object of type 'zz93.ej' to type 'zz93.eo'.

I am using DynamicPDF v7.0.3 for .NET, so I am not sure what to do. Because of this issue, I have a file which cannot be deleted because:

"The process cannot access the file 'XYZ.pdf' because it is being used by another process."

I can't get rid of the file without rebooting and the Server Admin is complaining.
Posted by a ceTe Software moderator
Hello,

Can you please send over the following details to support@cete.com so that we can look into it further ?

1.Code sample or project using which we can recreate the error.
2.Input (original) PDFs using which we can recreate the error.
3.Full error message along with stack trace.
4.Exact version and build number of the DynamicPDF DLL file. You can get this information in DLL references properties (Version and Description fields) in Visual Studio.

Thanks,
ceTe Software Support Team.
Hi, We have received the same error: "Unable to cast object of type 'zz93.ej' to type 'zz93.eo'. Was there a resolution to this problem?
Posted by a ceTe Software moderator
Hello,

For this error we have an open bug currently under investigation. Any additional information you can provide will help. Please email the following information to support@cete.com

1.Code sample to recreate the error.
2.Input (original) PDFs using which we can recreate the error.
3.Full error message along with stack trace.
4.Exact version and build number of the DynamicPDF DLL file. You can get this information in DLL references properties (Version and Description fields) in Visual Studio.


Thanks,
ceTe Software Support Team.
Posted by a ceTe Software moderator
Hello,

A fix for this issue is available in the latest build of v8. It can be downloaded by logging into the customer area using the v8 product serial number.

Thanks,
ceTe Software Support Team.
we are getting error "Unable to cast object of type 'zz93.uq' to type 'zz93.vb'"
We are using ceTe.dynamicpdf.40.dll
Kindly advise if this is a known issue and resolution for it.
Posted by a ceTe Software moderator
Hello,

Please try using the latest build of version 4 in your application and see that resolves the issue. You can download the latest by logging into our CustomerArea using your DynamicPDF product serial number. Remove reference for the older DLL file and reference the latest in your application.

If you continue having an issue, please send over the following information to support@dynamicpdf.com so we can look into it further.

1.        Code sample or a simple console application which uses static data to recreate the error.
2.        PDF(s) you are using when getting the error.
3.        Full error message along with stack trace.
4.        Exact version and build number of the DynamicPDF DLL file used in the application. You can get this information by right clicking on the DLL file>>Properties>>Details tab>>Product version. Take a screenshot of Details tab and send it over to us.

Please include a link for this forum in your email.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 5:06 AM.