@Erasmo Solazzo By default apps are actually set to run on 32-bit . But, you have also confirmed to modify the bitness from portal. ( could you share a screenshot)
It may be worth looking into the bin/ of the build and seeing if you see the right runtimes/ folder being generated with native libraries.
Could you also share the entire call stack of the exception?
Also, Please follow these steps:
- Go to https://resources.azure.com/
- Find your function app, and go under config/web under it in the tree
- check the value of use32BitWorkerProcess, whether it is false.
Please let me know if this helps.