?
Solved

SharePoint 2010 feature upgrade - null reference exception

Posted on 2012-04-02
1
Medium Priority
?
665 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline

864 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