Do you mean your web.config file is the original web.config and works fine in local (Azure emulator)? After you deploy on Azure VM, the web.config has been changed? Do you have ever enable RDP to connect Azure VM check it?
Yes, the web.config files works find in local (Azure emulator). But when I deploy to Azure, the web.config does not come across as the same. As mentioned in my original question, I used RDP to check. The screenshots of the original web.config
and new web.config are from RDP. As you can see, the file content is drastically different.
If I just save the original file into the server folder (using RDP), the application works as expected on Azure. But this is a temporary work-around, as the file goes back to the changed state on reboot or server change. I need a permanent solution.
I'm sure there's user error here (mine), but I cannot figure out what, as I'm doing everything "by the book."
BTW, doing a "copy always" doesn't help.