VS2010开发的WebPart部署到SharePoint 2010 页面出错

VS2010开发的WebPart部署到SharePoint 2010 页面出错

 Add-SPSolution c:\code\SharePointProject2\bin\debug\SharePointProject2.wsp

Install-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010 -GACDeployment

Update-SPSolution –Identity SharePointProject2.wsp –LiteralPath c:\code\SharePointProject2\bin\debug\SharePointProject2.wspGACDeployment

Uninstall-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010

 

Remove-SPSolution –Identity SharePointProject2.wsp


主要是部署的时候没有把controltemplate下面的 .ascx文件复制到服务器下的layout的controltemplate

你可能感兴趣的:(SharePoint)