SP 2010?

Aug 23, 2011 at 1:57 AM

Hi Chris!

Thanks for sharing this solution. Do you know if the current version will support SP 2010?

Thanks

Jose D. Parra

Aug 24, 2011 at 2:48 PM

The as-is version isn't a SP2010 Solution.  I upgraded the project to SP 2010 and am using it regularly.  You can download my patch here: http://spconfigstore.codeplex.com/SourceControl/list/patches 

Aug 30, 2012 at 2:04 PM

Hi pwalke

I tried your patched version for SP2010 but get the error Failed to find the XML file at location 14\Template\Features\config\feature.xml

when I try to activate the feature; I can definitly see the feature.xml file in that location

Have you come across this problem?

 

Thanks
Rob

Aug 30, 2012 at 2:41 PM

Hi Rob,

I am sorry, I uploaded the wrong patch before.  Please get my latest patch and let me know if that works for you.

Thanks,

Peter

Aug 30, 2012 at 3:27 PM

Thanks for replying :)

I added the soultion but when I tried to deploy I received this error...

Failed to create receiver object from assembly "COB.SharePoint.Utilities.ConfigStore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=23afbf06fd91fa64", class "COB.SharePoint.Utilities.Features.ConfigStore.ConfigStoreEventReceiver" for feature "COB.SharePoint.Utilities.ConfigStore_ConfigStore" (ID: ca9d918f-2845-4421-b005-65625aef5cb5).: System.ArgumentNullException: Value cannot be null.
Parameter name: type
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()

 

 

 

Aug 30, 2012 at 3:41 PM

 

Interestingly this time I deployed the solution through stsadm and it worked, I then tried to activate the feature and got these error fromt he logs...

 

Medium  Name=Request (POST:http://test.it:80/_layouts/ManageFeatures.aspx?Scope=Site)
Medium  Site=/
Medium  Feature Activation: Activating Feature 'COB.SharePoint.Utilities.ConfigStore_ConfigStore' (ID: 'ca9d918f-2845-4421-b005-65625aef5cb5') at URL http://test.it.
Medium  Caching global content types for LCID 0.
Medium  Caching global fields.
Medium  The configuration database was queried for a non-existent object with the id 69828593-5a05-4d29-bfc6-bc55c2739067. Most commonly, this is caused by removing an SPFeatureDefinition without writing upgrade code to remove references to the feature from each site.
High    Failed to determine the setup path of the list schema for feature {69828593-5A05-4D29-BFC6-BC55C2739067}, list template 10100.
High    The element of type 'ListInstance' for feature 'COB.SharePoint.Utilities.ConfigStore_ConfigStore' (id: ca9d918f-2845-4421-b005-65625aef5cb5) threw an exception during activation: Feature '69828593-5a05-4d29-bfc6-bc55c2739067' for list template '10100' is not installed in this farm. The operation could not be completed.
High    Feature Activation: Threw an exception, attempting to roll back. Feature 'COB.SharePoint.Utilities.ConfigStore_ConfigStore' (ID: 'ca9d918f-2845-4421-b005-65625aef5cb5'). Exception: System.ArgumentException: Feature '69828593-5a05-4d29-bfc6-bc55c2739067' for list template '10100' is not installed in this farm. The operation could not be completed.     at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass19.<GetFeatureRootAndListSchemaPaths>b__18()     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPFeatureManager.GetFeatureRootAndListSchemaPaths(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, Guid featid, Int32 ltid, String& sPathToF...
High    ...eatureRoot, String& sPathToSchemaXml)     at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionListInstances(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)     at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)     at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)
High    Leaving Monitored Scope (Feature Activation: Activating Feature 'COB.SharePoint.Utilities.ConfigStore_ConfigStore' (ID: 'ca9d918f-2845-4421-b005-65625aef5cb5') at URL http://test.it.). Execution Time=2169.01170400149
Unexpected System.ArgumentException: Feature '69828593-5a05-4d29-bfc6-bc55c2739067' for list template '10100' is not installed in this farm. The operation could not be completed.   at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass19.<GetFeatureRootAndListSchemaPaths>b__18()     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPFeatureManager.GetFeatureRootAndListSchemaPaths(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, Guid featid, Int32 ltid, String& sPathToFeatureRoot, String& sPathToSchemaXml)     at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionListInstances(SPFeaturePropertyCollection props, SPSite site, SP...
Unexpected ...Web web, Boolean fForce)     at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)     at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)     at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)     at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, String featureName, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)     at Microsoft.SharePoint.SPFeatur...
Unexpected ...eCollection.Add(Guid featureId, Boolean force, SPFeatureDefinitionScope featdefScope)     at Microsoft.SharePoint.WebControls.FeatureActivator.ActivateFeature(Guid featid, SPFeatureDefinitionScope featdefScope)     at Microsoft.SharePoint.WebControls.FeatureActivatorItem.BtnActivateFeature_Click(Object objSender, EventArgs evtargs)     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Medium  Leaving Monitored Scope (Request (POST:http://test.it:80/_layouts/ManageFeatures.aspx?Scope=Site)). Execution Time=2353.96426082086
Aug 30, 2012 at 3:56 PM

Hi Rob,

I don't have a test SP environment handy to repro your steps.  You can debug the ArgumentNullException by setting the deployment configuration to "No Activation" (project properties > SharePoint > Active Deployment Configuration).   You can then debug the wsp through visual studio.  Set a breakpoint at  COB.SharePoint.Utilities.Features.ConfigStore.ConfigStoreEventReceiver.FeatureActivated, activate the feature through site settings and try to see what argument is null.

...Peter

FeatureActivated FeatureActivated