Solved

SharePoint 2010 feature upgrade - null reference exception

Posted on 2012-04-02
1
593 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now