Hi @Marco Salvatori ,
System.BadImageFormatException: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (0x80131058)
Did you post this error on iis? If so, you can try the solution below:
- Delete the PresentationCore package from the Bin folder and rebuild project.
- There may be a problem caused by binary format compatibility, set Enable 32-bit Applications to True or False.
If the answer is helpful, please click "Accept Answer" and upvote it.
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.