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.wsp –GACDeployment
Uninstall-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010
Remove-SPSolution –Identity SharePointProject2.wsp
主要是部署的时候没有把controltemplate下面的 .ascx文件复制到服务器下的layout的controltemplate
作者:johnny
出处:http://www.cnblogs.com/sunjunlin
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。