Wednesday, June 23, 2010

Sharepoint “An unexpected error has occurred”

By design in SharePoint if an error occurs the user is shown a generic error message “An unexpected error has occurred”. The detailed error messages are turned off for security reasons.

Here's how to get the full error messages

  1. Go to the SP site you want to enable it for.
    For example C:\Inetpub\wwwroot\wss\VirtualDirectories\mySPsite.com80
  2. Open the web.config for editing.
  3. Find out the following entry
    safemode maxcontrols="200" callstack="false" directfiledependencies="10" totalfiledependencies="50" allowpageleveltrace="false"

    And make following changes to it

    safemode maxcontrols="200" callstack="true" directfiledependencies="10" totalfiledependencies="50" allowpageleveltrace="true"

    And
    customerrors mode="On"

    To
    customerrors mode="Off"

  4. Save and close web.config.

Tuesday, September 29, 2009

Broken zip / archive extension in Windows Vista

So I was playing around in Vista and purposely, by accident, associated all my Zip files with a WinRAR program. After removing the WinRAR app I figured that the associations would restore to the defaults of Vista, WRONG....

So if you're faced with this issue here's the fix.

In Vista
goto Start
and run "cmd /c assoc .zip=CompressedFolder"

All the default Zip file functions should be back to good Vista style.

Cheers,

Monday, September 14, 2009

Locked remote desktop sessions

So I'm home playing in my geek sandbox and wouldn't you believe it the darn server is locked up with too many open RDP sessions. Since I'm the only one jumping in and out of it I have only my self to blame. One for not setting session limits to auto end sessions after XX hours and two for just being plain lazy.

I would just go warm boot the server but the last ihad a power surge I lost my OS hard drive and half of my great Lisa Ann collecction. So here's a tip to a quick fix if you'd like to remotely solve this remoting issue!?

Open a CMD prompt
(Vista OS) mstsc /v:<hostname or IP> /admin
(XP OS) mstsc /v:<hostname or IP> /console

This command will override the session limit error and get you into the box in question so you do the necessary cleanup.

Holla!