VS2010 装在MOSS Production 服务器时,直接修改SiteUrl属性deploy至指定站点。
貌似无法用vs2010远程部署,远程部署报错信息:
Error 22 Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: http://xxx/. Make sure that this is a valid URL and the SharePoint site is running on
the local computer
. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.
只好手动部署,记录两个方式:
1. stsadm
安装和部署
stsadm –o addsolution –name xxx.wsp
stsadm –o deploysolution –name xxx.wsp –url http://moss-server –allowCasPolicies –immediate
更新和卸载
stsadm –o upgradesolution –name xxx.wsp –filename xxx.wsp –immediate –allowCasPolicies
2. powershell
安装和部署
Add-SPSolution x:\xxx\xxx.wsp
Install-SPSolution –Identity xxx.wsp –WebApplication http://xxx -GACDeployment
更新和卸载
Update-SPSolution –Identity xxx.wsp –LiteralPath x:\xxx\xxx.wsp –GACDeployment
Uninstall-SPSolution –Identity xxx.wsp –WebApplication