How I learnt to love Sharepoint and Reflector

Let’s say you’re developing a site and created a very basic feature that then is lit up in onet.xml. You go and create new site and instead of beautiful site you get a stack trace:
 
==============================
Value cannot be null.
Parameter name: g   at System.Guid..ctor(String g)
   at Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedAtWebInternal(SPWeb web, String sFeatures, Boolean fMarkOnly)
   at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass7.<EnsureFeaturesActivatedAtWeb>b__6()
   at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
   at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, CodeToRunElevated code)
   at Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedAtWeb(Byte[]& userToken, Int32 nZone, Guid siteid, Guid webid, String sFeatures) 
…..
===============================
 
WTF you say. What happened? You start looking around and trying to figure out what could be wrong….a few hours later you stumble on a simple yet powerful fact: <feature Id="{.1234..}" => supposed to be …drum roll….CAPITAL ID. Yes. <Feature ID
 
Enjoy 🙂
 
 
Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

2 Responses to How I learnt to love Sharepoint and Reflector

  1. Ai Fong says:

    good one! i had exactly the same problem. thanks 🙂

  2. teffy says:

    my teammate almost cracked her head figuring this mystery out. hahahaha! XDD super thanks!

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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