1 min read
DevelopmentSharePoint

Error Uploading Solution to SharePoint Solution Gallery

If when you upload a solution to the solution gallery in SharePoint 2010 you receive the following error.

“This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution ’64afe4f8-6a99-42e8-9845-43fc18cc49f8′ failed validation, file manifest.xml, line 10, character 4: The element ‘Solution’ in namespace ‘http://schemas.microsoft.com/sharepoint/’ has invalid child element ‘TemplateFiles’ in namespace ‘http://schemas.microsoft.com/sharepoint/’. List of possible elements expected: ‘FeatureManifests, ActivationDependencies’ in namespace ‘http://schemas.microsoft.com/sharepoint/’.

This is probably caused by the fact that there are some features or functionality referenced by the solution, which are not supported in sandboxed environment. Such as the following

  • Custom Action groups
  • HideCustomAction element
  • Content Type Binding
  • Web Application-scoped Features
  • Farm-scoped Features
  • CustomPropertyToolPart Class
  • Programmatic workflow
  • Event receivers
  • timer jobs
  • visual WebParts
  • SharePoint mapped folders (e.g. “_layouts”, and “images”)
To all intents and purposes the solution gallery treats all solutions as sandboxed even if they have been developed as farm solutions.  To get arround this deploy the solution via VS2010, stsadm etc. as usual and then activate the feature at the site level via either the site collection features or the site features (depending on option chosen)
menu.
For more information regarding this, please see the following technet article.

http://technet.microsoft.com/en-us/library/cc262995(office.14).aspx

Want more cloud insights? Listen to Cloudy with a Chance of Insights podcast:

Spotify | YouTube | Apple Podcasts

Tags

Development
Like this article?

Comments

Richard Hogan

Richard Hogan

Author & Host

Richard is a Microsoft-focused architect and consultant with deep expertise in Azure, Microsoft 365, cybersecurity, and enterprise cloud migration. He is the founder of The Microsoft Cloud Blog and co-host of the Cloudy with a Chance of Insights podcast. All views expressed are his own.

You might also like

SharePoint 2010: Accessing the Managed Metadata Service via Code

I was recently asked to provide some code which could query the managed metadata service of a SharePoint 2010 implementation and extract the terms for use in a separate web site. This turned out to be a bit more complicated than I initially thought as the architecture called for use of the SharePoint Web Services,… Continue Reading →

Unlocking Code-First Flexibility in Power Apps: A New Era for Custom Enterprise Applications

Unlocking Code-First Flexibility in Power Apps: A New Era for Custom Enterprise Applications

As organisations accelerate their digital transformation, the demand for custom applications is escalating rapidly. Microsoft’s announcement of the general availability of code apps in Power Apps marks a pivotal moment, offering both developers and IT teams a platform that addresses flexibility and governance without compromise. I’ve observed growing tension between developer autonomy and the enterprise… Continue Reading →

AI in Healthcare: Claude and Microsoft Foundry Signal a New Era for Clinical and Life Sciences Workflows

AI in Healthcare: Claude and Microsoft Foundry Signal a New Era for Clinical and Life Sciences Workflows

Bridging the gap between AI and medicine: Claude in Microsoft Foundry advances capabilities for healthcare and life sciences customers The convergence of artificial intelligence with healthcare and life sciences is accelerating, yet many organisations still grapple with fragmented workflows, mounting administrative tasks, and the relentless pace of scientific discovery. In my experience, bridging these gaps… Continue Reading →

In-depth cloud tech discussions from Microsoft experts.

Expert insights on Microsoft Azure, cloud architecture, and enterprise technology.