IIS doesn't seem to be able to read web.config after deploy to IIS

Occasionally, after deploy of a C# backend project to IIS, the application does not seem to be able to read the web.config file properly. If I open the web.config file and simply save it then the application works fine. I’ve have compared the ‘before’ and ‘after’ config files with a hex comparison and can not find any differences. Could anyone please provide some advise as to what might be happening?

Thanks very much.

Cheers
Scott

Hi @scotte
Thanks for getting in touch. That is an interesting issue. Since it’s intermittent, I hesitate to suggest that it may be a permissions issue, but you may want to check what dentity IIS is running under.

When the application is unable to read the web.config are you seeing errors in the UI, or in IIS/event viewer logs? If possible, can you send over any errors and screenshots of what you’re seeing?

Looking forward to hearing from you shortly.

Kind Regards,
Tina