包含可视 Web 部件的已部署解决方案未显示在自定义类别中

发布于 2024-09-09 01:11:55 字数 1218 浏览 3 评论 0原文

我有一个密码更改可视 Web 部件,可以在我的开发服务器上完美部署和运行,但在 .wsp 部署的集成/测试服务器上,却没有在任何站点的选择列表“自定义”类别中显示该 Web 部件。

集成/测试中央管理控制台 .wsp 文件状态:

名称:sp2010passwordchange.wsp
类型:核心解决方案
包含 Web 应用程序资源:是
包含全局装配:是
包含代码访问安全策略:否
部署服务器类型:前端 Web 服务器
部署状态:已部署
部署到:https://portal2.mysite.com/
上次操作结果:解决方案部署成功。
上次操作详情: MYCOMPANY-SP10 : https://portal2.mysite.com/ :解决成功已部署。
上次操作时间:2010 年 7 月 12 日下午 3:05

元素文件:

<?xml version="1.0" encoding="utf-8"?>
   <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
     <Module Name="PasswordChange" List="113" Url="_catalogs/wp">
       <File Path="PasswordChange\PasswordChange.webpart" Url="PasswordChange.webpart" Type="GhostableInLibrary" >
         <Property Name="Group" Value="Custom" />
       </File>
    </Module>
</Elements>

此外,Web 部件也不会显示在 Web 部件库中。


So my questions are:
What are the most common reasons for this failure? Am I missing some additional Site deployment steps?

谢谢!

I have a Password Change visual web part that deploys and functions perfectly on my development server yet on the Integration/Test server the .wsp deploys yet does not show the web part in the pick list "Custom" category for any site.

Integration/Test Central Management Console .wsp file status:

Name: sp2010passwordchange.wsp
Type: Core Solution
Contains Web Application Resource: Yes
Contains Global Assembly: Yes
Contains Code Access Security Policy: No
Deployment Server Type: Front-end Web server
Deployment Status: Deployed
Deployed To: https://portal2.mysite.com/
Last Operation Result: The solution was successfully deployed.
Last Operation Details: MYCOMPANY-SP10 : https://portal2.mysite.com/ : The solution was successfully deployed.
Last Operation Time: 7/12/2010 3:05 PM

Elements file:

<?xml version="1.0" encoding="utf-8"?>
   <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
     <Module Name="PasswordChange" List="113" Url="_catalogs/wp">
       <File Path="PasswordChange\PasswordChange.webpart" Url="PasswordChange.webpart" Type="GhostableInLibrary" >
         <Property Name="Group" Value="Custom" />
       </File>
    </Module>
</Elements>

Also -- the web part does not show up the the web part gallery as well.


So my questions are:
What are the most common reasons for this failure?
Am I missing some additional Site deployment steps?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拥有 2024-09-16 01:11:55

部署解决方案包后,您是否激活了将 Web 部件添加到 Web 部件库的功能(它将位于网站集功能中)? Visual Studio 中的部署工具会自动为您完成此操作,但在部署到生产环境时需要手动执行此操作。

更新(2016 年 6 月 15 日):我录制了一个视频,演示了部署包含 Web 部件的场解决方案的过程。 将包含 Web 部件的场解决方案部署到 SharePoint 2013 或 2016

After you deployed the solution package did you activate the Feature that adds your Web Part to the Web Part gallery (it will be in Site Collection Features)? This is done for you automatically by the deployment tools in Visual Studio but you need to do it manually when you deploy to production.

Update (June 15, 2016): I recorded a video that walks through the process of deploying a farm solution containing a web part. Deploying a Farm Solution Containing Web Parts to SharePoint 2013 or 2016

仅此而已 2024-09-16 01:11:55

该功能没有自动显示在我的网站集中。在“SharePoint 2010 Management Shell”中部署解决方案后,

stsadm -o addsolution -filename XXXXXXXX.wsp

我必须为我的网站集激活该功能

enable-spfeature -Identity ProjName_FeatureName -url http://myserver/sites/ZZZZ

功能名称可以在您的 .package 文件清单中找到

<解决方案 xmlns="http://schemas.microsoft.com/sharepoint/" ...>

...

<功能清单>

>

The feature did not automatically show up in the site collection for me. After deploying the solution in the “SharePoint 2010 Management Shell” with

stsadm -o addsolution -filename XXXXXXXX.wsp

I had to activate the feature for my site collection with

enable-spfeature -Identity ProjName_FeatureName -url http://myserver/sites/ZZZZ

The feature name can be found in your .package file manifest

<Solution xmlns="http://schemas.microsoft.com/sharepoint/" ...>

...

<FeatureManifests>

<FeatureManifest Location="ProjName_FeatureName\Feature.xml"
/>

</FeatureManifests> </Solution>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文