Hi @Mohamed Moustafa ,
Based on the information you provided, I can't judge the cause of the problem, but don't worry, let's do some troubleshooting first to narrow down the problem:
- Which version of SharePoint server are you using?
- How do you extend web application?
- Check if the file that is being referenced in the error message actually exists in the specified location.
- Check if the file has the correct permissions for the account that is running the SharePoint application pool.
- Check if there are any typos or errors in the URL that is being used to access the file.
- Check if there are any issues with the IIS configuration or the web application settings.
There are some articles about extend web application for your reference:
https://learn.microsoft.com/en-us/sharepoint/administration/extend-a-claims-based-web-application
https://spgeeks.devoworx.com/sharepoint-2016-extend-web-application/
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If the answer is helpful, 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.