该解决方案不包含 Web 应用程序范围的资源,
关于在 sharepoint 中设置 sharepoint 解决方案,我几乎不需要帮助。
我创建了 wspbuilder 项目(12 个配置单元结构,包括 controltemplates 文件夹),
我已经为用户控件创建了项目(如登录注销等),当我构建它们时,.ascx 文件将被添加到 12\controltemplates 文件夹中(我编写了 postbuild 事件来添加 .ascx 文件)。 ascx 作为 controltemplate)
没有编译错误。我构建了 wsp 并将其添加到解决方案商店。但是,当我尝试将其部署到特定的 Web 应用程序时,我在部署解决方案窗口中看不到 Web 应用程序的选择。 也就是说,
该解决方案不包含 Web 应用程序范围的资源,因此无法部署到特定的 Web 应用程序。它只能在全球范围内部署。
我认为问题在于将 safecontrols 添加到 manifest.xml 中。当我构建 wsp 时,没有安全控件添加到 maifest.xml 中。我还在 wspbuilder.exe.config 文件中包含了 GAC 的部署目标。
我的 feature.xml 如下
<Feature Id="DBF94C51-A4AB-4c47-BD97-74D3795C6A63"
Title="site feature"
Description="My sharePoint features"
Version="1.0.0.0"
Scope="Site"
Hidden="FALSE"
DefaultResourceFile="core"
xmlns="http://schemas.microsoft.com/sharepoint/"
ReceiverAssembly="[[4part assembly name]]"
ReceiverClass="[[Receiver class]]"
>
我如何解决这个问题。我只想将 wsp 部署到特定的 Web 应用程序。
谢谢。
I need little help regarding sharepoint solution set up in sharepoint.
I created wspbuilder project(12 hive structure including controltemplates folder)
I have created project for user controls(like login logout etc) and when I build them the .ascx files are being added to 12\controltemplates folder(I wrote postbuild event to add .ascx as controltemplate)
There are no compilation errors. I built wsp and added it to solution store. But when I am trying to deploy it to the specific web application I can see no selection of web application in deploysolution window.
It is saying
The solution contains no Web application scoped resource, and therefore cannot be deployed to a particular Web application. It can only be deployed globally.
I think the problem is adding safecontrols to the manifest.xml. When I build the wsp no safe controls are adding to the maifest.xml. I included deploymenttarget to GAC in wspbuilder.exe.config file also.
my feature.xml is as follows
<Feature Id="DBF94C51-A4AB-4c47-BD97-74D3795C6A63"
Title="site feature"
Description="My sharePoint features"
Version="1.0.0.0"
Scope="Site"
Hidden="FALSE"
DefaultResourceFile="core"
xmlns="http://schemas.microsoft.com/sharepoint/"
ReceiverAssembly="[[4part assembly name]]"
ReceiverClass="[[Receiver class]]"
>
How I can resolve this issue. I want to deploy the wsp to specific webapplication only.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您要注册 safecontrols,则需要在 Web 应用程序级别确定该功能的范围,以便它知道要更新哪个 web.config。将范围更改为 WebApplication,它将知道要部署到哪个 web.config。
此外,在使用 stsadm 时,请使用 -url 开关来提供您需要的 Web 应用程序。
谢恩
if you are registering safecontrols, you need to scope the feature at the web application level so it know which web.config to update. Change the scope to WebApplication and it will know which web.config to deploy to.
Also when using stsadm use the -url switch to supply the web application you need.
Shane
您如何部署它 - 您发出的确切 STSADM 命令是什么?它们与您的清单文件中的范围匹配吗?
http://msdn.microsoft.com/en-us /library/bb861828(office.12).aspx
How are you deploying this - what are the exact STSADM commands you are issuing? Do they match the scope in your Manifest file?
http://msdn.microsoft.com/en-us/library/bb861828(office.12).aspx
哦,实际上这是我的错误......抱歉打扰。
我没有在 wspbuilder.exe.config 文件中包含键值。我将安全控件放入解决方案中的其他指定文件夹中。我必须包含在配置文件中。
现在一切都很好。感谢您的帮助。
ohh actually it was my mistake..sorry for the disturbance.
I didn't include the key value in the wspbuilder.exe.config file. I am taking the safe controls into other specified folder in the solution. I had to include in the config file.
Now everything is fine. Thanks for the help.
我做了和你一样的观察。
我不认为这与 dll 的 gac 或 bin 部署有关,但前提是包含 safecontrol。
以下是 SP2010 中的操作方法:
http://rasor.wordpress.com/2011/ 12/04/sp2010-wsp-全局或不/
I did kind of same observation as you.
I don't think it is related to gac or bin deployment of the dll, but only if there is safecontrol included.
Here is how to do it in SP2010:
http://rasor.wordpress.com/2011/12/04/sp2010-wsp-global-or-not/