Troubleshooting Generic “File Not Found” Error in Sharepoint
Dear Friends,
While working with Sharepoint, almost everyone of us have faced the Sharepoint “File Not Found” error..may be while adding a webpart to a page or while performing some action on the page. The error as shown below:
It is highly recommended that you do NOT apply these changes on production server. Also, on development server after you have fixed the issue, please revert back ot original web.config file.
To see the exact error and not this generic error (people form ASP.Net background can understand how painful is this to fix an issue on webpage when we don;t have any clue and just a generic error page), please follow the below steps:
- Go to C:\Inetpub\wwwroot\wss\VirtualDirectories\{Port number of your sharepoint site}
- Create backup of the current web.config file by makingĀ a copy–MAKE SURE YOU DO NOT FORGET IT IN CASE ANYTHING GETS SCREWED UP, THIS WILL HELP!!
- Open web.config in your favorite editor
- Search for the text “Callstack” and set the value to “true”
- Search for the text “CustomErrors” and set the value to “Off”
- Search for the text “Debug” and set the value to “true”
- Save the file and refresh the page. You will get the exact cause of the error.
Hope this helps in your daily encounters with Sharepoint. Please feel free to share this and let me know your thoughts via comments!