The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
Do you try to follow this article to delete and recreate the SharedWebConfig.config file?
If you still cannot access ECP and OWA after creating this file, you many need to install a new Exchange in your domain then copy SharedWebConfig.config file from that new Exchange server(The different environment have different configuration information, the file copied from other organization may not suitable for you).
Remember run IISReset command to restart the IIS service after making change to configuration file.
If the response is helpful, please click "Accept Answer" and upvote it.
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.