Solved

SharePoint 2010 feature upgrade - null reference exception

Posted on 2012-04-02
1
625 Views
Last Modified: 2012-08-13
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="MyNewContentTypes\Elements.xml" />
      </ApplyElementManifests>
    </VersionRange>
  </UpgradeActions>
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!
0
Comment
Question by:ivan_vagunin
1 Comment
 
LVL 18

Accepted Solution

by:
ivan_vagunin earned 0 total points
ID: 37797244
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question