Are you getting frustrated with “An unexpected error has occurred” in sharepoint 2007? I found some useful tips. You can get more error messages from MOSS especially when they are not written to the application log. Do follow the steps below to get more:
1. Go into the web.config of the specific sharepoint web and set custom errors to off. Search for customErrors tag
2. Turn on tracing and the callstack by setting both to true. Search for SafeMode
Though event viewer also stores vital informaiton but above tricks are handy when a log in not written to EV