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

原文地址:https://www.cnblogs.com/sunjunlin/p/2327300.html