GroupDocs.Conversion NoConvertOptions causes crash in GroupDocs.Total.NETFramework 25.5.0 if the file type is a known format

This test case was working fine in the previous GroupDocs.Total.NETFramework 25.4.0, but is now broken in 25.5.0:

  • Create a text file named “ignore.log”

In convertOptions, detect “.log” extension and return NoConvertOptions.

From the 25.5.0 ConsoleLogger, can see that it knows that “document ignore.log is passed without conversion because has NoConvertOptions provided.”

However, it seems that it crashes out before documentCompleted is called:

[TRACE] --> convertContext
[TRACE] .SourceFileName = ignore.log
[TRACE] .SourceFormat = log
[TRACE] ignore.log not converting due to file extension
[TRACE]  ... document ignore.log is passed without conversion because has NoConvertOptions provided.
[WARN] Exception thrown while processing ignore.log. Original exception message: Unable to cast object of type '???' to type '???'.
[ERROR] Unhandled exception thrown while processing ignore.log. Original exception message: Unable to cast object of type '???' to type '???'., exception: System.InvalidCastException: Unable to cast object of type '???' to type '???'.
   at   ?.  ?   (??  , Func`2, Action`1 , CancellationToken )
   at  ????   (Func`2 , Action`1, ConvertOptions , CancellationToken )
   at ?? .(??  , CancellationToken)
   at?? (CancellationToken )
... conversion completed

Unhandled Exception: GroupDocs.Conversion.Exceptions.GroupDocsConversionException: Unable to cast object of type '   ' to type '   '. ---> System.InvalidCastException: Unable to cast object of type '   ' to type '   '.
   at    .      (    , Func`2, Action`1 , CancellationToken )
   at         (Func`2 , Action`1, ConvertOptions , CancellationToken )
   at    .(    , CancellationToken)
   at   (CancellationToken )
   at   .()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at   ..(Exception )
   at System.AggregateException.Handle(Func`2 predicate)
   at   .(CancellationToken )
   at GroupDocs.Conversion.Converter.(CancellationToken )
   at GroupDocs.Conversion.Converter.Convert(Func`2 convertOptionsProvider, Action`1 documentCompleted, CancellationToken cancellationToken)
   at NETFrameworkGroupDocs.Program.Main(String[] args) in C:\Projects\NETFrameworkGroupDocs\NETFrameworkGroupDocs\Program.cs:line 0

@jarrodwee
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): TOTALNET-248

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.