Hi @Smith, Roland，
Is it possible or am I missing something?
I think you may have forgotten to set
Enable 32-Bit Application to True for the IIS application pool, so that the web application and the dll run at the same bitness.
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.