我一直在更新SP2010解決方案,該解決方案將外部內容源集成到BCS搜索中。此解決方案將一個功能部件(featureA)部署到場範圍。我將它分成兩個功能,一個(FeatureA)部署到服務器場,另一個(功能B)連接到站點範圍。Sharepoint無法看到新部署的功能,也不會激活它們
我的更新腳本做到這一點:
- 停用FeatureA農場
- 更新-SPSolution新WSP文件(名稱相同)
- 激活FeatureA農場
- 激活FeatureB上這兩個網站(在兩個不同的網絡應用上)
最後兩步腳本炸彈,說
Enable-SPFeature : The Feature is either not found or not a Farm Level Feature. Use Url parameter to specify the scope of the Feature.
的第一個(農場)和
Enable-SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url http://url-site
上第二個
(網站)
這是CI服務器上試運行,這意味着它也將崩潰在生產服務器上。 但是,在我的機器上部署軟件包並激活這些功能後,運行良好。
我檢查過,這些功能實際上存在於SharePoint文件夾中,因此部署似乎沒有問題。我無法弄清楚爲什麼SharePoint無法看到它們。如果我運行Get-SPFeature,它們不在列表中。
我試過iisreset,無濟於事。
編輯:
我已經成功地得到SharePojnt注意到兩個特徵,通過使用安裝-SPFeature。 然而,它仍然不會讓FeatureB,但有錯誤了:
Enable-SPFeature : Attempted to perform an unauthorized operation.
我在一個小的損失的是一次。
要求在2011年。在2012回答..並在2013年幫助我,謝謝:) –