When I set Enable 32 bit Applications in Application Pool of IIS
If you disable enable 32-bit applications
and it works, then your problem is running 32-bit applications on a 64-bit computer,
The server cannot access the applicationhost.config or web.config file because of incorrect NTFS permissions.
Please check what are set for Application Pool Identity.
More information you can refer to this link: HTTP Error 500.19 - internal server error when you open an IIS Webpage
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. 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.