Disable ConversionLog.xml creation

Hi GroupDocs

Regarding .net version: 23.8.0

We have encountered some issues with the creating of ConversionLog.xml during Converter.Convert
Multiple call to this Convert method causes “file already in use”-issues

Can you help us with a solution/options where creating of ConversionLog.xml is not included. We would like to disable the creating/usage of this ConversionLog.xml in our software.

We are converting different documents to PDF.
Snippet:
converter.Convert(() => new MemoryStream(), (convertedStream, fileType) => convertedStream.CopyTo(resultStream), options);

Options being: PdfConvertOptions

We have looked in out forums, where someone wanted the same with Pdf-family and Java - but that fix is not working for us.

Looking forward hearing back from you.

@KokholmDk
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONNET-6298

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@KokholmDk

GroupDocs.Conversion for .NET doesn’t create any ConversionLog.xml file. Could you please share a sample project/application and steps to reproduce the issue?

We can confirm we also have this new file ConversionLog.xml created upon completion in the current working directory.

This was not the case in v21 but now happens in v23.8.

Hi Talaw, thank you for your reply. This file actually gives us issues when running on Azure Function or other “low-code” runtimes, due to the Conversion needs write-permission and location of this file.
Would be lovely with the option to opt this one out. Write-permission and location of the file is not that obvious.

It is not that obvious where this file is located on the Filesystem. Gives us issues on Azure Function and also on App Service.
Do you know how to set the folder of this generated File?

@talaw @KokholmDk

Kindly review this response. Tell us if the suggested workaround/solution works for you. However, a permanent fix is in progress.

@KokholmDk for your information, at the moment we decided to use /tmp as the working directory before spawning our groupdocs binary.

Okay. Would be nice to be able to opt. that conversionLog.xml out, by configuration - if the implementation does not care about this file :slight_smile: Also making sure, in multi-threaded apps, that file is not locked. In the current version we are issueing file already in use - exception. Software should probaly not break, in case of multiple updates to a log-file.

@KokholmDk @talaw

Rest assured, in the next API release, the ConversionLog.xml file will not be generated at all.

The issues you have found earlier (filed as CONVERSIONNET-6298) have been fixed in this update. This message was posted using Bugs notification tool by nikola.yankov