This project is read-only.
3
Vote

This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution.

description

Tried to activate the LifeInSharePoint.Metro solution on a Team Site but got this error:

This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution '768bf7b2-ce06-4b93-aebe-e2d86b060a96' 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/'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: Microsoft.SharePoint.SPException: This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution '768bf7b2-ce06-4b93-aebe-e2d86b060a96' 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/'.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
 
[SPException: This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution '768bf7b2-ce06-4b93-aebe-e2d86b060a96' 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/'.]
Microsoft.SharePoint.Administration.SPUserCodeSolutionPackage.SPUserSolutionManifestValidationCallBack(Object sender, ValidationEventArgs evtargs) +23478146
System.Xml.Schema.XmlSchemaValidator.ValidateElementContext(XmlQualifiedName elementName, Boolean& invalidElementInContext) +715
System.Xml.Schema.XmlSchemaValidator.ValidateElement(String localName, String namespaceUri, XmlSchemaInfo schemaInfo, String xsiType, String xsiNil, String xsiSchemaLocation, String xsiNoNamespaceSchemaLocation) +178
System.Xml.XsdValidatingReader.ProcessElementEvent() +939
System.Xml.XsdValidatingReader.Read() +276
System.Xml.XmlReader.MoveToContent() +22
System.Xml.XmlReader.IsStartElement() +13
Microsoft.SharePoint.Utilities.SPUtility.XsdValidateXml(XmlTextReader xmlStreamReader, String friendlyName, String pathXsdFile, String tagExpectedRootNode, ValidationEventHandler xsdValEventHandler) +605
Microsoft.SharePoint.Administration.SPUserCodeSolutionPackage.ValidateSolutionManifest() +135
Microsoft.SharePoint.Administration.SPSolutionPackage.ProcessSolutionManifest() +982
Microsoft.SharePoint.Administration.SPSolutionPackage.Load() +46
Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionPackage(SPRequest request, String name, String signature, Byte[] fileBytes) +22639340
Microsoft.SharePoint.<>c__DisplayClass1.<AddOrUpgrade>b__0() +239
Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +27488118
Microsoft.SharePoint.SPUserSolutionCollection.AddOrUpgrade(SPListItem item, SPUserSolution existingSolution) +449
Microsoft.SharePoint.SPUserSolutionCollection.Add(Int32 solutionGalleryItemId) +574
Microsoft.SharePoint.WebControls.SolutionItemButton.ActivateItem() +398
Microsoft.SharePoint.WebControls.SPLinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +72
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
 

 

 

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

file attachments

comments

lifeinsharepoint wrote May 16, 2012 at 4:29 PM

Thanks for this..i will look into it. Can you let me know your SharePoint version and any other settings you know.

Thanks

wrote Jul 13, 2012 at 11:06 AM

wrote Aug 9, 2012 at 5:32 PM

wrote Aug 14, 2012 at 9:31 AM

peobrien wrote Aug 14, 2012 at 9:31 AM

I too have just had this problem. Can activate the LifeInSharePoint.Metro.Sandbox.wsp solution just fine but not the LifeInSharePoint.Metro.wsp solution.

Running Sharpoint Server 2010 Version 14.0.6029.1000.

See attached....

johnb11 wrote Sep 6, 2012 at 1:25 AM

Any further enlightenment?

wrote Feb 22, 2013 at 12:44 AM

foderus wrote Feb 27, 2013 at 6:59 AM

I also had this problem but with the sandbox and not with the original lifeinsharepoint.metro.wsp, using sharepoint 2010 online