SharePoint 2010 feature upgrade - null reference exception
Posted on 2012-04-02
I am trying to upgrade my custom feature. Upgrade action definition is following:
<VersionRange BeginVersion="0.0.0.0" EndVersion="18.104.22.168">
<ElementManifest Location="MyNewContentTypes\Elements.xml" />
Update-SPSolution is executed without any errors, but when I try to upgrade feature I get following error:
- System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Utilities.SPUtility.XmlGetAttrVal(XmlNode xn, String attr) at Microsoft.SharePoint.SPApplyElementManifestsUpgradeAction.get_ElementManifests() at Microsoft.SharePoint.SPApplyElementManifestsUpgradeAction.Upgrading(SPFeatureReceiverProperties props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce) at Microsoft.SharePoint.Administration.SPFeatureDefinition.UpgradeCore(SPFeature feature, SPWebApplication webApp, SPSite site, SPWeb web, Boolean fForce)
As far as I understand something is wrong with ApplyElementManifests element, but it seems OK... Any help is appreciated. Thanks!