To overcome this issue, we need to modify the web.config of the share point site.
1) CallStack attribute to true (by default it is false). This would give us the exact error thrown.
2) Then find customErrors element and change its mode from “On” to “Off”
Save and close the file . Re-run the page.