部署SharePoint解決方式包時遇到的問題

2022-10-11 11:39:11 字數 875 閱讀 4441

近期我在使用stsadm.exe命令部署解決方式包的時候。遇到乙個問題。很的難搞。

建立wsp檔案非常easy。加入到解決方式庫也非常easy。我用的命令一直是這種:

stsadm -o addsolution -filename solutionname.wsp
可是,當我嘗試著使用下面命令部署解決方式:

stsadm -o deploysolution -name solutionname -url http://smallville-pc/ -local
遇到問題:此解決方式不包括web應用程式範圍的資源,無法將其部署到特定的web應用程式

我花了好久才搞懂。為什麼這個命令不正常工作(由於之前我成功過好多回了)。最後發現我必須省略url引數才幹夠:

stsadm -o deploysolution -name solutionname -local
原因是這個解決方式,不像其它的。沒有生成程式集。

然後我嘗試著部署其它解決方式時省略url引數。可是有一部分又遇到問題:此解決方式包括 web 應用程式範圍的資源,必須將其部署到乙個或多個web應用程式。

此時我不得不指定url引數,才幹正常執行stsadm.exe命令。由於manifest.xml檔案指定了元素。

部署的時候,sharepoint須要知道將元素合併到哪個web.config檔案裡。因此必須指定url引數。

最後我的總結是這種:假設你的解決方式指定了元素(資源)須要合併到web.config檔案(即為乙個web應用程式),然後你必須指定url引數。假設不包括程式集。然後你不能指定url引數。

在網路上我也找到了對應的文章,大家能夠參考一下:moss2007 解決方式部署(關於「包括web應用程式範圍的資源」與「不包括web應用程式範圍的資源」)

SharePoint 關於拓撲錯誤的解決方案

topology 報錯資訊 sharepoint web services round robin service load balancer event endpointfailure affected endpoint 主要是兩種型別的 sharepoint service metadatawe...

SharePoint 關於拓撲錯誤的解決方案

topology 報錯資訊 sharepoint web services round robin service load balancer event endpointfailure affected endpoint 主要是兩種型別的 sharepoint service metadatawe...

SharePoint部署工具SPSD

sharepoint solution deployer 絕對屬於必備的 sharepoint 工具之一了。assemblies 和deploygac.bat 解壓出來。對於本地部署,什麼設定都不用改變,只需要複製 wsp到 solutions 資料夾就可以使用,基本上幫你考慮到了所有的情況。我這裡...