Member_6283346
asked on
SharePoint 2010 feature upgrade - null reference exception
H!
I am trying to upgrade my custom feature. Upgrade action definition is following:
<UpgradeActions>
<VersionRange BeginVersion="0.0.0.0" EndVersion="1.0.0.0">
<ApplyElementManifests>
<ElementManifest Location="MyNewContentType s\Elements .xml" />
</ApplyElementManifests>
</VersionRange>
</UpgradeActions>
Update-SPSolution is executed without any errors, but when I try to upgrade feature I get following error:
- System.NullReferenceExcept ion: Object reference not set to an instance of an object. at Microsoft.SharePoint.Utili ties.SPUti lity.XmlGe tAttrVal(X mlNode xn, String attr) at Microsoft.SharePoint.SPApp lyElementM anifestsUp gradeActio n.get_Elem entManifes ts() at Microsoft.SharePoint.SPApp lyElementM anifestsUp gradeActio n.Upgradin g(SPFeatur eReceiverP roperties props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce) at Microsoft.SharePoint.Admin istration. SPFeatureD efinition. UpgradeCor e(SPFeatur e 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!
I am trying to upgrade my custom feature. Upgrade action definition is following:
<UpgradeActions>
<VersionRange BeginVersion="0.0.0.0" EndVersion="1.0.0.0">
<ApplyElementManifests>
<ElementManifest Location="MyNewContentType
</ApplyElementManifests>
</VersionRange>
</UpgradeActions>
Update-SPSolution is executed without any errors, but when I try to upgrade feature I get following error:
- System.NullReferenceExcept
As far as I understand something is wrong with ApplyElementManifests element, but it seems OK... Any help is appreciated. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.