如何在Web应用程序中部署SP2010 wsp文件。 [英] How do I deploy SP2010 wsp file in Web Application.

查看:82
本文介绍了如何在Web应用程序中部署SP2010 wsp文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我使用sharepont 2010开发了一项功能,功能范围是Web,功能部署目标是WebApplication(Deployement Target已经set throw Package-> Advanced-> Add-> Add Project from Project Output-> Deployment Target asWebApplication。



在此功能中使用 SPWebConfigModification类更新web.config文件。



我的担心如下:



1)部署后它应该转到特定的web,因为它是一个WebApplicationdeployemnt,但是这个功能在服务器中的所有Web应用程序中都可用,即使我们转到Central Admin-> System Setting-> Manage Farm解决方案,我们可以看到这个.wsp文件已部署到特定的Web应用程序而不是Globally Deployed。我认为这看起来很奇怪。我的要求是,该功能应该在一个Web应用程序中可用,而不是在所有Web应用程序中。有人可以指出我的错误是什么错误在这或如何c我们这样做了吗?

解决方案

作为一种解决方法,将该功能作为隐藏功能,并通过Web应用程序中的stsadm或powershell激活它。 / BLOCKQUOTE>

Hi all,

I have developed a feature using sharepont 2010, feature Scope is "Web", feature Deployment Target is "WebApplication"(Deployement Target has been set throw Package->Advanced->Add->Add Assembly from Project Output->Deployment Target as "WebApplication).

In this feature using "SPWebConfigModification" class updating web.config file.

My concern is below:

1)After deploying it should go to particular "web" since its a "WebApplication" deployemnt but this feature is availabe in all the web apllication in the server, even though if we go to Central Admin->System Setting->Manage Farm solution, we can see this .wsp file has been deployed to particular web application not Globally Deployed. I think this looks strange. My requirement is, the feature should be available in one web application not in all web application. Can somebody point me out pls whats wrong in this or how can we do this?

解决方案

As a work around make the feature as Hidden feature and activate it through stsadm or powershell in the web applications where ever it is required.


这篇关于如何在Web应用程序中部署SP2010 wsp文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆