When SharePoint throws an error, it just says "An unexpected error has occurred" and expects the developer to put more efforts for finding the exact issue. That is quite frustrating at times !!
The "Troubleshoot issues with Microsoft SharePoint Foundation." is not helpful at all.
The error message might not seem helpful at first, but it provides you 2 important parameters which are helpful in troubleshooting the actual issue -
The SharePoint Logs are stored on your Server – HIVE\LOGS (usually HIVE is – C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions)
Scan through all your logs, find the relevant log (based on date-time) which should have your error details (use the 'Date and Time' value). Then open the file and search for the 'Correlation ID', this will give you more specific details about the error.
This could take up some time for reaching the exact error and issue. Is there an easier way ? -Yes.
Code2care'smission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.