mike hodnick

Point your browser to www.hodnick.com for Mike's latest content.

Notice:

You are viewing Mike's old, archived site. For new content, navigate to hodnick.com

Latest From Twitter...

The Blog

Best SharePoint error ever:

error

Actually, I don't know that this is a SharePoint error at all.  The core exception thrown is a COMException.  Internet research has only yielded a small amount of forum posts relating to using System.IO.Directory and System.IO.DirectoryInfo, which as far as I can tell are not being used on this page. 

I cracked open Reflector hoping to learn more.  An internal SharePoint class just catches the COMException and throws a new SPException.  As you can guess, the SharePoint method that does the work is just wrapping a COM call.  

Unfortunately, I think we may resort to more drastic measures to save time (backup/restore from another environment) to eliminate this error rather than try to understand what the cause of the error is. 

But you have to admit, the exception message is totally awesome. 

Technorati Tags:  
posted on Thursday, May 22, 2008 9:37 AM |