SharePoint Features: Scope of Deployment 

Tags:

SharePoint applications are made up goodies such as custom web parts, lists, list event handlers, site definitions, site pages, application pages, and on and on. We package our SharePoint applications as features in order to maximize reusability and ease deployment. Then we add more deployment-ease by packaging our features and their resources as SharePoint solution (.wsp) files. The SharePoint Solution Installer provides the final touch by providing a nice wizard based interface for solution deployment. Once our SharePoint administrators complete the SharePoint Solution Installer wizard (or use the equivalent STSADM commands), our features are "deployed". All is good.

 

But wait…. What does it mean to "deploy" a feature in a solution package?

 

Simply put, the feature is installed to the farm at the scope specified for the feature in the feature.xml.

 

This means that the feature(s) within the solution will appear in the list of features available for activation in all cases of that scope. For example, if the feature is scoped to "web", it will appear for activation in all sites for all site collections across all web applications on your farm.

 

The code which displays the list of features, for example, on the Site Features page, iterates over the SPFeatureDefinitions held in SPFarm.Local.FeatureDefinitions and filters out those which are not scoped to web, those which are hidden, and those which have AutoActivateInCentralAdmin flag set. In short, this means that a feature that you develop is available for activation across the entire farm.

 

This presents a problem in some environments where a feature may have been developed for use on one specific site in the farm. Site administrators for other sites in the farm may be confused when they see features in the list of site features which have no application to their site. One work around is to set the hidden attribute to True in the feature.xml. This will remove the feature from the Site Features list on all sites requiring use of STSADM to activate and deactivate the feature. Unfortunately I have not found a cleaner solution.

 

Many though have wondered, "Why is it that I can deploy my feature to a specific web application while this blog post is telling me that the feature list is the same across all web applications in the farm?"

 

There are several ways to deploy your solution to a specific web application.

 

The STSADM command deploysolution accepts a URL

 

The SharePoint Solution Installer also allows you to choose a web application target for solution deployment.

 

 

Last, Operations-Solution Mangement in Central Administration will allow you to deploy and retract solutions from specific web applications.

 

 

So, what does it mean to deploy a solution to a specific web application?

 

The web application deployment target is used as the destination for the following application scope resources which may appear in your solution manifest. These are physical changes to files within your web application (IIS web site).

 

  • ApplicationResourceFiles – Ex: MyFiles\My.resx. See the comment at the bottom of the solution manifest schema for some more detail.
  • Assemblies (if the DeploymentTarget is set to WebApplication) – Ex: [web]\80\bin\MyAssembly.dll
  • CodeAccessSecurity – Changes to <securitypolicy> section in [web]\web.config to point to a new custom policy file in [12]\config
  • DWPFiles – .webpart and .dwp files for custom web parts
  • SafeControls - Additional entries in <SafeControls> section in [web]\web.config.

     

    *[web] = your IIS web site folder, e.g., C:\inetpub\wwwroot\wss\VirtualDirectories\80

    *[12] = your 12 Hive, e.g., C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\

 

The deployment methods listed above will not allow deployment to a web application if the solution package (.wsp) does not contain any resources scoped to web application.

 

For example, STSADM –o deploysolution will give the following error in this case:

This solution contains no resources scoped for a Web Application and cannot be deployed to a particular Web application.

 

In summary, the deployment of a solution package to a specific web application pertains to resources included in the solution package and not to the installation of the feature itself. Interestingly, the feature is installed across the entire farm even though resources required for that feature may have only been deployed to select web applications. Activating a feature at a scope beneath a web application in which the solution package has not been deployed will result in missing resources exceptions for sure!

 

Hopefully this sheds some light on the subject of feature deployment and installation scope.

 
Posted by Eric Bowden on 2-Oct-08
18 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:        
 

Links to this post

Comments


Hosty commented on Tuesday, 21-Oct-2008
Ya SharePoint is very good technice to share document with clients im also using sharepoint services from http://www.apps4rent.com/sharepoint.html and with secure with low cost with best support. http://www.apps4rent.com/index.htm


wow commented on Thursday, 30-Oct-2008
lc Welcome to wow gold. We are a world class wow powerleveling store online. We supply cheap wow gold to our loyal and World of Warcraft goldreliable customers. you canwow power leveling buy really cheapwow gold wow gold here. We havewow power leveling mass available stock ofwow power leveling wow gold onwow power leveling most of the servers, sowow power leveling that we can do aRolex really instant way of wow power levelingwow gold wow golddelivery. We canwow powerleveling deliver yourwow powerleveling wow gold on powerlevelingthe order powerlevelingin a short cheap wow goldwhile. We have beencheap wow gold an ebay powerpower leveling seller and paypalpower leveling confirmed seller rolex replicaof wow gold for replica rolexyears.So it ischeap wow gold securest and safestRunescape Gold to buy RuneScape Money wow gold from Watches Rolexus. Don’t be Rolex Watchesirresolute! We arewow gold hoping to servegold wow you and helpingWatch Rolex you to have a wonderfulRolex Watch wow life! We arers gold ready now, how about you?


Thanhvn commented on Wednesday, 19-Nov-2008

bgg commented on Wednesday, 19-Nov-2008
When I firstLineage adena faculty meetingLineage 1 adena of the year, as a newSilkroad gold teacher my first ever,buy silkroad gold and this man was my principal.heflyff penya stood at the frontbuy flyff gold of the room,flyff money hands on hips,eve online isk and faced us alleve isk as if we were prisoners.2moons dil "Keep in mind2moons gold that I'm the boss,"eq2 plat he said. "You willEverQuest 2 gold do as you are told,EverQuest 2 plat and if you don't,Runescape gold I'll make your lives miserable!"FreshRunescape money out of college, I had accepted the position of kindergarten teacher at a public school.


bgg commented on Wednesday, 19-Nov-2008
When I firstLineage adena faculty meetingLineage 1 adena of the year, as a newSilkroad gold teacher my first ever,buy silkroad gold and this man was my principal.heflyff penya stood at the frontbuy flyff gold of the room,flyff money hands on hips,eve online isk and faced us alleve isk as if we were prisoners.2moons dil "Keep in mind2moons gold that I'm the boss,"eq2 plat he said. "You willEverQuest 2 gold do as you are told,EverQuest 2 plat and if you don't,Runescape gold I'll make your lives miserable!"FreshRunescape money out of college, I had accepted the position of kindergarten teacher at a public school.


bgg commented on Wednesday, 19-Nov-2008
She cried in world of warcraft goldmy arms and saidbuy wow gold she didn't want thecheap wow gold surgery. I held herwow power leveling hand as an I.V.


oil painting commented on Friday, 21-Nov-2008

aksale commented on Sunday, 23-Nov-2008
i like it >war power leveling
<


sharepoint commented on Tuesday, 2-Dec-2008
its very great article from this users can get more knowledge still most of ppl dnt know about sharepoint and its important. Keep it up! :) GET More info about SharePoint Hosting


buy wow gold commented on Saturday, 27-Dec-2008
At least buy wow gold for now.then cheapest wow goldwas one whom world of craft gold cheapMannoroth couldworld of warcraft gold cheap especially not touch.buy cheap wow gold With the death of the queen?s advisor, Lordbuy world of warcraft gold Xavius, the WOW FAQcaptain had become wow gold her liaison. Whenever the glorious Azshara opted WOW US not to gift those buy wow goldworking in the chamber with wow gold news her magnificent presence, wow gold about the guard captain took her place. my site is :http://www.game4power.com. Life is hard. game news We should not give up hope. By the time we have given wow support up, we are finished. Chances are always wow gold news there. We have to wow power leveling grab every single opportunity to help..., to world of warcraft love and to serve. To live our life wow tips happier, full of joy, we have cheap wow gold to set our goal and even dream big. If we choose the shortest path in life, we will never learn. To be or not to be, we have to be somebody. The fastest way to gain love is to love buy wow goldothers first!Do not hide your talent, wow gold FAQ your knowledge and your beautiful heart. Go for your dream and live for it.[http://www.wowgoldone.com]


car wash commented on Monday, 29-Dec-2008
Best china wholesale service, quick wholesale delivery, nice wholesale products, is there anything more you can expect on this platform? This net will build up a link between you and you supplier so that to be sure you would have a satisfied wholesale clothingwholesale apparel trading. The account managers will take care of all your wholesale products questions, inquires and help you manage your account. We provid popular wholesale products such as wholesale watch and wholesale electronics. Different from other platforms, we also provide consumer electronics products, for example car electronics and digital camera. Meanwhile, we offer the best bluetooth phones and GPS Cellphone . Well begun is the half done. Please choose our platform to shorten your way to the successwholesale shoes,wholesale handbagsand wholesale toys
we offer chloe betty handbag,hermes handbags,gucci handbags,,balenciaga handbags,mulberry handbag,roxanne bag,hermes kelly bags,chloe betty bags ,miumiu bags,d&g handbags,fendi spy bag,chloe ascot handbag,hermes birkin,prada handbag,jimmy choo,leather wallets hermes we a supplier of those products.if you have any interest.contact ours Chinese antique furniture supplier and we can supplycar wash systems. car wash systems .car wash equipment. car wash equipment. automatic car wash .automatic car wash .car washing machine. car washing machine. car wash. car wash

楼梯有机玻璃电焊机硬度计测厚仪毛刷厂 毛刷毛刷北京汽车租赁防静电地板 白癜风 白癜风治疗货架 货架厂 网络地板 白癜风遮盖白癜风资讯白癜风资讯白癜风治疗有机玻璃加工数控切割机数控火焰切割机数控等离子切割机焊机健身器材 桶装水送水公司

工业毛刷 尖锐湿疣 尖锐湿疣治疗 生殖器疱疹 生殖器疱疹治疗 毛刷厂 帕金森清洗毛刷轻松过关名师课堂 粘钢胶树脂灌缝胶建筑结构胶植筋胶 结构胶灌浆料 灌浆 XYLITOLSODIUM SULPHATECAUSTIC SODA FLAKESMANGANESE SULFATESODIUM FORMATEMAGNESIUM SULFATEOXALIC ACIDFORMIC ACIDXYLITOLSODIUM SULPHATECAUSTIC SODA FLAKESMANGANESE SULFATESODIUM FORMATEMAGNESIUM SULFATEOXALIC ACIDFORMIC ACID Chinese antique furniture supplier and we can supplycar wash systems. car wash systems .car wash equipment. car wash equipment. automatic car wash .automatic car wash .car washing machine. car washing machine. car wash. car wash if u need ,contact me 会计专业资格会计专业资格考试会计从业资格证书会计专业技术资格会计从业资格证初级职称初级会计资格初级会计职称会计报名中级会计资格中级会计职称初级会计职称考试中级会计职称考试09年中级会计职称考试轻松过关名师课堂闫华红田明王燕会计答疑会计试题会计职称模拟试卷会计职称考前串讲会计职称历年试题会计资讯会计职称考试报名会计职称称准考证会计名师会计职称培训会计从业资格试题09年会计从业资格考试2009年会计报名2009年会计职称考试规律总结职称考试应试技巧会计职称考试答案会计职称考试试题会计职称考试时间中级职称初级职称培训初级职称报名中级职称报名中级职称培训职称考试初级会计中级会计初级会计初级中级 会计考试报名会计职称考试报名会计职称报名时间会计中级职称报名注会成绩查询注会考试成绩查询会计考试复习资料会计考试教材会计考试辅导视频会计考试历年试题会计考试真题会计考试答疑会计辅导名师最好的会计网校会计辅导权威网校最好的会计网会计远程教育权威会计网校会计人网上家园注册会计师教材会计论坛注册会计师会计在线学习北京会计培训注税考试报名注税考试辅导教材注税考试辅导课程高会考试报名高会考试辅导教材高会考试辅导课程高级会计师会计考试论坛中级财务管理注会经济法中级经济法经济法基础初级会计实务公司战略与风险管理注会税法经济法基础中级会计实务注会政策改革注会会计注会财务成本管理注会审计会计中级报名指南注会会计



share point commented on Wednesday, 31-Dec-2008
All the steps are clearly mentioned. Thanks


aijiaen commented on Saturday, 3-Jan-2009
My guildies world of warcraft gold and I were discussing how the gratification and validity of end game raiding has steadily been decreasing since wow powerleveling the release of WoW. An example in Pre-TBC was that those individuals who spent the time to raid end game world of warcraft gold content to get the best gear in the game would have the ability to control pvp, that casuals would partake in. Obviously wow power leveling it felt good to always own casuals and it gave gratification and vailidty to a portion of raiding outside raids. For world of warcraft gold the sake of rambling I'll leave it with that example alone, I know wow powerleveling there are quite a few others.However Post-TBC dofus kamas this aspect of raiding was nullified with the full blown development of pvp and those who raided dofus kamas end game had less advantage over those who didn't in regards to pvp. I'm not saying Lord of the Rings Online Gold it was bad but the fact remains it took away a benefit of raiding. Another LOTRO Gold change was with the introduction of badge gear, which allowed "wanna be raiders" not to have to fly for fun penya raid every 25man in the raid to see the final content due to flyff penya the fact that they could spend time getting badges and prepare for Hyjal / BT instead of going back Final Fantasy XI gil through Gruul, Mag, Ssc, and TK. This change was obviously for the best ffxi gil because it allowed for a larger recruitment pool for guilds who were trying to complete the most current eq2 plat end game instances, but it also took away a sense of long time dedication to get the guild where eq2 gold it was at the point in relation to before the average player experience level was the same. Again their Lord of the Rings Online Gold are more examples but your brains LOTRO Gold are slowing straying so I'll skip to the next point.We now see in the WotLK beta that at some flyff penya point casuals are going to be able to see the dungeons, storyline, and boss buy flyff gold fights in 10mans somewhat like or perhaps even extremely similar to those people who put the ffxi gil effort to do the 25mans. This is again going to take away from the gratification and buy ffxi gil validity of end game raiding, there will be no more statements or bragging to others about how they eq2 plat seen Kalecgos and M'uru. I personally take alot of pride and in the fact that I've been able to see, partake, and eq2 gold learn the M'uru fight because I know that the Lord of the Rings Online gold average wow player will not, due to the LOTRO gold understanding, complexity, and overall difficulty derived from these fights. In WotLK even fly for fun penya the players in blues and "kara" gear will be able to experience a portion flyff penya if not all of these fights at some point.So..... With all this said I'd like to Final Fantasy XI gil ensure that those of you who are still awake from reading this know that there is more to raiding ffxi gil that what I've stated above, but my point is that slowly the validity and rewards of eq2 plat raiding are being decreased.As a result I'd like to offer some input on how to bring some of this back eq2 gold in WotLK. I think this can be done through a concept that is just being put together and refined, Achievements. We all runescape money know that every server has a progression thread were guilds are often ranked based upon the amount, which, and when runescape gold boss's were killed. Why not put these two concepts together and create a Guild Achievement Progression ugg boots Tab? A place where the server's top ranking end game raiding guilds are listed in order to allow new players ugg boots to be able to see who they can try to apply for and also to promote competition and respect. A couple of concepts to tie into this ugg boots page would be very useful.


aijiaen commented on Saturday, 3-Jan-2009
http://www.hnu.cn/index.php?option=com_content&task=view&id=7343&Itemid=56


aijiaen commented on Saturday, 3-Jan-2009
I refer more world of warcraft gold so to the reward of world of warcraft gold seeing content. As it stands gear doesn't entitle you to do much other than raid.That works too. So does this.We all wow power leveling have a little failboat captain in us all.Self esteem refers to how much a world of warcraft gold person likes, accepts, and respects himself overall as a person. I was not referring to what the game cheap wow gold gives me, but to the time vs reward investment blizzard has presented.put some time into BGs and Arena and you world of warcraft gold will be rewarded... in PvP put time into Raids and you will be rewarded... in PvE i dont see what the big issue is, after cheap wow gold looking at all these posts it seems like the bottom line is that raiders want to be rewarded in both PvE world of warcraft gold and PvP for just particpating in PvE which doesnt make sence...It was never my intention to imply buy wow gold that raiders should be rewarded in both PvP and PvE. I was merely trying to suggest that blizzard world of warcraft gold should reevaluate the rewards "hardcore" raiders receive.There should be a bulletin board in every major city showing wow power leveling top ranking guilds as far as raids go. Also there should be a speed running world of warcraft gold category like down the last boss in an raid instance in X amount of time.No one is saying wow gold kaufen we want this... were just stating that it USED to be like this before pvp had alot of content of its own.Blizzard dofus kamas has held big tournaments for pvp with cash and prizes. All we want is a kamas dofus visible means that blizzard supplies


aijiaen commented on Saturday, 3-Jan-2009
Taunt and wow gold devestate only worked to their max potential if you wow gold had a rend up, but thats a bit of a stretch.As Far as wow gold Talnar, You are correct on alot of points, although along the lines of taking talents you dont want, i actually wow gold ment it in reverse. I was looking at it more of " Wow, if wow gold you want to go to the bottom of the blood tree, your spec is defined for you just wow gold by skipping tanking abilities You are correct, about holding wow gold threat with DPS instead of " causes threat" abilities, and i did forget about frost presence. Like i said i was wow gold more or less looking at DPS DeathKnights only, but i think the wow gold next point i would bring up.This fund has been stashed out of the excess profit made last year by my branch wow gold office the International Commercial Bank which I am the Manager.

Name:
URL:
Email:
Comments:

CAPTCHA Image Validation