RSS Feed

Sharepoint – Exceptions

Today I was doing the “boring” stuff. Yeah , creating list definitions , field definitions and installing features it is … boooring. You have to “click click click”.

By the way a co-worker told me about a nice addin to Visual Studio InsertGuid it’s quite useful.


Ok so while developing I encountered an exception “cannot complete this action please try again” when SPField.Update() was called. So, I started to check recent modifications. Nothing. Checked the Iist. Nothing. Restarted the Iist. Nothing . Recreated whole site on the sharepoint. Nothing. Then while inspecting schema I realized that my ContentType Definition had a typo in its ID parameter.

It was
but should be
4 hours wasted …

Definitely the best one of those special Exceptions is “Unspecified Error” when calling Unmanaged classes. Very informative , elegant just cool. This one happened when I was calling Active Directory and performed a Check if a user exists which used the DirectorySearcher.FindAll() method …. couple hours wasted and solution ?? Application pool or user with permission to AD had too low security access.

Doh , You just have to love those “special” exceptions . I hope that this short post will be helpful to some poor soul trying to figure out “What the hell happened?” 😀


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s