Anyone who has done any development for SharePoint runs across cryptic error messages from the browser sooner rather than later. Especially helpful is "An unexpected error has occurred" without error logging anywhere around.
This is readily addressed in web.config setting, and was most helpfully capture a year or so ago by
Evren Ayan. I'm just repeating it here to provide myself with an easy-(for-me)-to-find reference for the next time I forget.
As with any .NET development, turn off custom errors in
:
<customErrors mode="Off" />
Additionally, again in , set the compilation debug flag to true:
<compilation debug="true" ... >
Finally, in the section, set the CallStack value in SafeMode to true:
<SafeMode CallStack="true" ... />
Of course, the output is user hostile, but that's what we want in development anyway.