Hi @hao zhang , the error message you provided indicates that there is an issue with serialization and deserialization of 'System.IntPtr' instances in your ASP.NET Core application. This error can occur when you are using a library or package that is not compatible with the version of .NET Core that you are using.
To resolve this issue, you can try the following steps:
- Check the version of .NET Core that you are using in your application. Make sure that it is compatible with all the libraries and packages that you are using.
- Check if there are any updates available for the libraries and packages that you are using. If there are updates available, try updating them to the latest version.
- If the issue persists, try removing the library or package that is causing the issue and see if the application runs without errors. If it does, you may need to find an alternative library or package that is compatible with your version of .NET Core.
- If none of the above steps work, you can try debugging the issue by setting breakpoints in your code and stepping through it to identify the exact location where the error is occurring.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James