SharePoint 2010 WSRP Viewer WebPart Configuration

19. January 2012 04:24 by Rashid Aziz in Sharepoint blogs  //  Tags: , ,   //   Comments
In SharePoint only a user can connect a WSRP viewer web part to a trusted producer. Any producer that has been configured for use in the farm by the SharePoint administrator is known as trusted producer. End users are restricted to add trusted producers and cannot override the settings so that end users and sharepoint environment can be protected from malicious remote portlet. How to add a trusted: SharePoint administrator have to create a TrustedWSRPProducers.config file in the “C:\program files\Microsoft Office Server\14.0\Config” folder on the SharePoint web front ends.   TrustedWSRPProducers.config  sample file:  <Configuration > <Producer Name="NetUnity" AllowScripts="true"> <ServiceDescriptionURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</ServiceDescriptionURL> <RegistrationURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</RegistrationURL> <MarkupURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</MarkupURL>   <PortletManagementURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</PortletManagementURL> </Producer> </Configuration>  Now place the file “C:\program files\Microsoft Office Server\14.0\Config” folder on the SharePoint web front ends a user can configure the WSRP Viewer web part. After adding WSRP viewer web part to a site the designer or administrator have to open up the web parts configuration panel to modify a few settings. Producer Modification:   A drop down lists out available producers TrustedWSRPProducers.config file.   After the producer is selected the portlet drop down selector will populate with the available values for the selected producer. Select the desired portlet, click the OK button to save these settings.                         For additional configuration SharePoint site must be switched to edit mode and then the Edit Web Part option needs to be selected from the WSRP viewer web part drop down menu. Edit mode display the web parts configuration tool pane along with displaying additional portlet configuration information in the location of the web part on the SharePoint site. The webpart will display the news feed from yahoo as shown below. WSRP is one of many portals when working with SharePoint 2010. SharePoint’s business connectivity services and creating custom data view webParts from web services  using SharePoint Designer.  

How to get list of all site owners in SharePoint web application

20. December 2011 02:27 by Rashid Aziz in Sharepoint blogs  //  Tags: , ,   //   Comments
We are implementing governance in place for our SharePoint environment, during the analysis  we need to find out who is the site owner for each site in our SharePoint web applications,  we have about 500 sites and it will be  time consuming to go to each one site settings and find the owners names. I wrote a simple stsadm command to get list of site owners and some other site related information and dump it into a text file. Open the command prompt and navigate to the following path C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN Run the following command. stsadm -o enumsites -url http://WebApplicationURL > c:\allsiteinfo.txt once the command runs successfully , go to c drive and open “allsiteinfo.txt” file. You will see result something like this. <Sites Count="2"> <Site Url="http://testweb/site1" Owner="eblogin\admin" ContentDatabase="MOSS2007DB" StorageUsedMB="36.8" StorageWarningMB="0" StorageMaxMB="0" /> <Site Url=" http://testweb/site2" Owner="eblogin\admin" SecondaryOwner="eblogin\aziz" ContentDatabase=" MOSS2007DB" StorageUsedMB="0.7" StorageWarningMB="0" StorageMaxMB="0" /> </Sites>  If you like my blog please follow me on facebook and twitter to get latest blog alerts.

Modify web.config settings on feature activation in SharePoint

13. April 2011 02:14 by Rashid Aziz in Sharepoint blogs  //  Tags: ,   //   Comments
In SharePoint 2010 there is a way to modify web.config settings file. You need to use SPWebConfigModification class which is a part of Microsoft.SharePoint.Administration namespace. This class allows us to register entities dynamically. Adding new settings in web.config I am going to use SPWebModification class inside “Feature Activating” method of SharePoint feature to register a custom assembly.  public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPWebService newService = SPWebService.ContentService; SPWebConfigModification customModification = new SPWebConfigModification(); customModification.Path = "configuration/SharePoint/SafeControls"; customModification.Name = "SafeControl[@Assembly='CustomAssembly'][@Namespace='CustomNamespace'][@TypeName='*'][@Safe='True']"; customModification.Sequence = 0; customModification.Owner = "UserName"; customModification.Type = SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode; customModification.Value = "<SafeControl Assembly='CustomAssembly' Namespace='CustomNamespace' TypeName='*' Safe='True' />"; newService.WebConfigModifications.Add(customModification);   newService.Update(); newService.ApplyWebConfigModifications(); } Now you need to deploy and activate the feature. After that open web.config of your SharePoint web application where you deployed the feature and will find the following setting being added.J <SafeControl Assembly="CustomAssembly" Namespace="CustomNamespace" TypeName="*" Safe="True" />

Configure recycle bin in SharePoint 2010 foundation and server

7. March 2011 06:19 by Rashid Aziz in Sharepoint blogs  //  Tags: ,   //   Comments
 The recycle bin in SharePoint is used to help site users to protect and recovery of data. Configure recycle bin in SharePoint 2010 Server You need to verify first that the account you are using to configure the recycle is a member of Farm administrator. Go to the central admin site and click on “Application management” tab From the “Application Management” page, click “Manage web application” link. Select a web application on which you want to configure the recycle bin. (The ribbon will be active). Click the “General Settings” dropdown menu from the ribbon and click “General Settings”. You are on the web application setting page; in the recycle bin section you can do the configuration as following. You can set the recycle bin for the web application “ON” or “OFF” mode, By default it will be “ON” Also you can set the timing, after how long an item will be removed from recycle bin automatically. You can also configure a percentage of live site quota for second-stage deleted items. After you done the setting’s , click “OK” Configure recycle bin in SharePoint 2010 Foundation You need to verify first that the account you are using to configure the recycle is a member of Farm administrator. Go to the central admin site and click on “Application management” tab From the “Application Management” page, click “Manage web application” link. Select a web application on which you want to configure the recycle bin. (The ribbon will be active). Click the “General Settings” dropdown menu from the ribbon and click “General Settings”. You are on the web application setting page; in the recycle bin section you can do the configuration as following. You can set the recycle bin for the web application “ON” or “OFF” mode, By default it will be “ON” Also you can set the timing, after how long an item will be removed from recycle bin automatically. You can also configure a percentage of live site quota for second-stage deleted items. After you done the setting’s , click “OK”

Stay connected

SharePoint Links

Month List