This will seem like a silly post to most people, however, I’ve found that in my classes a surprising number of students get very frustrated with the error messages that SharePoint generates because the messages don’t give any indication as to what the actual problem is. The offending message is the dreaded “Unknown Error” message.
The truth of the matter, however, is that SharePoint (actually ASP.NET) knows what the error is; it’s just that the framework is keeping that information to itself.
If you open the web.config of the site you’re experiencing the problem in (eg. c:\inetpub\wwwroot\wss\virtualdirectories\mysitename\web.config), and do a search for “CallStack” and toggle that element to “true”. Then, do a search for “customErrors” and toggle that element to “off”. Save the web.config file.
If you go back to your site and refresh the page, you should see the actual exception that was thrown and where it was thrown.
Lastly, if you did this change in production, you’ll want to change it back, but that probably goes without saying ;)
-Phil