Dear Aspose Support Team,
I am encountering an issue with the Aspose PDF Merge API when running in an on-premise aspose-pdf-cloud
container. The merge operation works correctly in one of our environments but fails in another. Below are the details of the error:
Error Log:
Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HN6S8OC6OQPH", Request id "0HN6S8OC6OQPH:00000002": An unhandled exception was thrown by the application.
System.NotSupportedException: Serialization and deserialization of 'System.IntPtr' instances are not supported. Path: $.TargetSite.MethodHandle.Value.
---> System.NotSupportedException: Serialization and deserialization of 'System.IntPtr' instances are not supported.
at System.Text.Json.Serialization.Converters.UnsupportedTypeConverter`1.Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
...
The error suggests that the serialization of System.IntPtr
is not supported. The merge operation works in one environment but fails in another, even though both environments are using the same version of the Aspose PDF Cloud container.