I had been searching for the answer for quite a while and none of them seems to fix my issue.
After reviewing my settings carefully, it appears that another settings in web.config is causing the problem. After I removed the
I use a visual studio pro subscription which comes with $150 azure cloud credit, for some reason Microsoft Defender for Cloud was turned on ...