We have been using the core suite, version 9 and are now upgrading v10. So, it looks like the DLL names have changed?
ceTe.DynamicPDF.40.dll is now DynamicPDF.NETFramework40.dll
In one my class libraries, I removed the reference to the old DLL and added a reference to the new DLL. But I'm getting what appears to be missing references, for example:
The type 'Table2' is defined in an assembly that is not referenced. You must add a reference to assembly 'ceTe.DynamicPDF.40, Version=9.0.0.40 ...
Is there any detailed guidance on this upgrade process?
upgrading from v9 to v10 and assembly references
Re: upgrading from v9 to v10 and assembly references
Support · Jun 3, 2020Hi,
That is the correct equivalent DLL for v10.
You should be able to simply remove the old reference and reference the new DLL (DynamicPDF.NETFramework40.dll). Try doing a "Clean" on the class library. If the class library is referencing another class library (or project) that uses v9, you'll need to update that class library as well.
Hope that helps.
Thanks,
ceTe Software Support Team
Re: upgrading from v9 to v10 and assembly references
Forum member · Jun 4, 2020I've cleand up my solution and have been able to succesfully build again. However, on a test page I have with quite simple code to create a Document, add an HTMLArea to it, then DrawToWeb() is failing:
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'zz93.ij' threw an exception.
Source=DynamicPDF.NETFramework40
StackTrace:
at zz93.ij.c()
at zz93.n3.dc(lj A_0)
at zz93.qd.cm(ij A_0, kz A_1)
at zz93.dy.g(k0 A_0, ij A_1)
at zz93.dy.f(k0 A_0, ij A_1)
at zz93.o5.cm(ij A_0, kz A_1)
at zz93.dy.g(k0 A_0, ij A_1)
at zz93.eh.cm(ij A_0, kz A_1)
at ceTe.DynamicPDF.PageElements.Html.HtmlArea.a()
at ceTe.DynamicPDF.PageElements.Html.HtmlArea.b()
at ceTe.DynamicPDF.PageElements.Html.HtmlArea.DrawRotated(PageWriter writer)
at ceTe.DynamicPDF.PageElements.RotatingPageElement.Draw(PageWriter writer)
at ceTe.DynamicPDF.PageElements.Group.Draw(PageWriter writer)
at ceTe.DynamicPDF.Page.b(PageWriter A_0)
at ceTe.DynamicPDF.Page.ff(DocumentWriter A_0, Int32 A_1, Int32 A_2)
at ceTe.DynamicPDF.Page.a(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3)
at zz93.b1.f()
at zz93.b1.Draw()
at ceTe.DynamicPDF.Document.Draw(Stream stream)
at ceTe.DynamicPDF.Document.a(HttpRequest A_0, HttpResponse A_1, Boolean A_2, String A_3, Boolean A_4)
at ceTe.DynamicPDF.Document.DrawToWeb()
at WebForm1.runTestHTML() in C:\dev\PDFTests\WebForm1.aspx.cs:line 162
at WebForm1.btnTestHTML_Click(Object sender, EventArgs e) in C:\dev\PDFTests\WebForm1.aspx.cs:line 181
Inner Exception 1:
GeneratorException: Unable to load DLL 'DPDFNative_x86': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Re: upgrading from v9 to v10 and assembly references
Support · Jun 4, 2020Hi,
You are getting that error because of a missing the native DLL. It is required by the HTMLArea page element. Try placing the DPDFNative file in your bin folder. Please refer to the documentation on referencing assemblies and deployment here
.
Thanks,
ceTe Software Support Team