开发者

Activate Visual Web Part Package in Share Point 2010

开发者 https://www.devze.com 2023-03-17 13:26 出处:网络
I have created a new project of SharePoint 2010 --> Visual Web part, seleted it as form solution. and it created the web part.

I have created a new project of SharePoint 2010 --> Visual Web part, seleted it as form solution. and it created the web part.

I just edited it with Hello World! for confirmation and deployed it using VS, and successfully added to page.

problem, arrises when i activated the same package after uploaded it from site actions--> site settings --> galleries --> Solutions -- > upload n开发者_如何学Cew solution --> activate it.

error came:

This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution 'GUID' failed validation, file manifest.xml, line 14, 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/'

I don't know why VS didn't get this error while its deployment or i am missing some thing while my deployment.

any idea?


Try to make your visual web part as sand boxed solution your problem will be resolved

0

精彩评论

暂无评论...
验证码 换一张
取 消