Service crashes whenever I try converting a word doc to pdf. Installed via NuGet. Running in IIS in an ASP.NET web application. On screen error is "System.IO.FileNotFoundException: Could not find file 'C:\windows\TEMP\3193c2aa-fc7a-4cc8-a647-c170c0c621ca.pdf'."
Windows Event Log error:
Service stopped.
Exception details
Type : System.InvalidCastException
Message : Unable to cast object of type 'SyncStream' to type 'System.IO.MemoryStream'.
Source : DynamicPDF.Converter.Service
StackTrace : at d.c()
at g.a(d A_0)
at g.e()
at g.b()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
DynamicPDF Converter service event log error
Re: DynamicPDF Converter service event log error
Support · Nov 1, 2021Hi,
Please make sure to install the Windows Service when using the product from IIS. The service can be found in your projects "DPDFConverterService" folder if you referenced the product from NuGet, or in the "DPDFConverterService" folder of the download from our site. This folder contains a ReadMe with instructions on how to install it. Please pay special attention to step #4 (copying the DLL to the folder) as it is easy to miss.
Thanks,
ceTe Software Support Team
Re: DynamicPDF Converter service event log error
Forum member · Nov 1, 2021The service is installed. That is what is generating this event/error.
Re: DynamicPDF Converter service event log error
Forum member · Nov 1, 2021There are three errors in the event log always together when this happens:
--------------------------------------------------------------------------------------
[ Name] DynamicPDF Converter
Keywords 0x80000000000000
[ SystemTime] 2021-11-01T20:08:42.620153400Z
Service stopped. Exception details Type : System.InvalidCastException Message : Unable to cast object of type 'SyncStream' to type 'System.IO.MemoryStream'. Source : DynamicPDF.Converter.Service StackTrace : at d.c() at g.a(d A_0) at g.e() at g.b() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
--------------------------------------------------------------------------------------
[ Name] .NET Runtime
Keywords 0x80000000000000
[ SystemTime] 2021-11-01T20:08:42.621159700Z
Application: DynamicPDF.Converter.Service.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidCastException at d.c() at g.a(d) at g.e() at g.b() at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()
--------------------------------------------------------------------------------------
[ Name] Application Error
Keywords 0x80000000000000
[ SystemTime] 2021-11-01T20:08:43.013147200Z
DynamicPDF.Converter.Service.exe
3.10.0.44688
6142ebbe
KERNELBASE.dll
10.0.17763.2183
12a65345
e0434352
001235e2
2664
01d7cf5bca5aa128
c:\Program Files\DynamicPDFService\DPDFConverterService\DynamicPDF.Converter.Service.exe
C:\Windows\System32\KERNELBASE.dll
c8268568-da22-42c2-8da6-6c8f4d3b6d49
Re: DynamicPDF Converter service event log error
Support · Nov 2, 2021Hi,
We will send these error details to our developers to look into it further. Could you please send over the word document and a sample code that can recreate the issue to our [^a|mailto:support@dynamicpdf.com|opennewwindow|support team^]? Also please provide the office version and the OS details that are used.
Thanks,
ceTe Software Support Team
Re: DynamicPDF Converter service event log error
Forum member · Nov 2, 2021OS is Windows Server 2019 running IIS
Office 2016 is installed on the server
C:\Windows\TEMP is opened up for Everyone
I cannot share the documents because they contain protected patient medical data but ANY word doc or docx causes the error.
Every time a user tries to convert a Word doc the error occurs and DynamicPDF service crashes with the three exceptions I listed above.
Re: DynamicPDF Converter service event log error
Forum member · Nov 3, 2021Has there been any progress on this at all?
Re: DynamicPDF Converter service event log error
Support · Nov 4, 2021Hi,
Yes, we've identified the issue and are testing the fix. We expect to have a new build ready early next week. If you'd like to test out a beta build, please send an email to support@dynamicpdf.com and we'll send an download link over to you.
Thanks,
ceTe Software Support Team
Re: DynamicPDF Converter service event log error
Support · Nov 10, 2021Hi,
We have an update from our development team and this issue is fixed in latest release, DynamicPDF Converter for .NET (v3.11). You can download latest version from NuGet (Package ID: ceTe.DynamicPDF.Converter.NET) or from our website here
If you are wanting the use DynamicPDF Converter Service, then please unregister the older and register the latest one.
The service can be found in your projects "DPDFConverterService" folder if you referenced the product from NuGet, or in the "DPDFConverterService" folder of the download from our site. This folder contains a ReadMe with instructions on how to install it. Please pay special attention to step #4 (copying the DLL to the folder) as it is easy to miss.
Thanks,
ceTe Software Support Team
Re: DynamicPDF Converter service event log error
Forum member · Nov 10, 2021Thank you! I have the fix and it is working perfectly now :-)