Yesterday SharePoint greeted me with this error message when I tried to create a new site inside a site collection:
File not found.
I examined the ULS logs of the SharePoint server and I noticed that it tried to open the new web by name and it failed. The reason was a faulty Alternate Access Mappings entry, as shown here:
Exception type: System.IO.FileNotFoundException
Message: The Web application at http://whatever.domain.com/newsite could not be
found. Verify that you have typed the URL correctly. If the URL should be serving
existing content, the system administrator may need to add a new request URL
mapping to the intended application.
SOLUTION
I added the correct AAM entry in Central Administration, linking the external name (http://whatever.domain.com) to the internal name (http://servername).
what is the corret AAM ?Please i have the same problem and still didn’t not find a solution for it!!!
The correct AAM would be the one that has the internal URL as your server name and the external URL as your “normal” URL.
Please check the corresponding entry in TechNet: http://technet.microsoft.com/en-us/library/cc263208(TechNet.10).aspx