Clean the SharePoint 2010 Environment before upgrade to SharePoint 2013

12. March 2013 03:12 by Rashid Aziz in Sharepoint blogs  //  Tags: ,   //   Comments
 It is highly recommended to do bit cleaning before you do an upgrade of SharePoint 2010 environment to SharePoint 2013.We need to make sure that environment is running and fully functioning, and should clean up all those contents which doesn’t required upgrade. You should consider the following items to clean up before upgrade. Delete Site collections/Sub sites which are no longer in use You should consider moving site collection into separate content databases for better performance and scalability You need to remove unused custom features, web parts, templates, event receivers, workflows etc Make sure if you have large list (Lists with a lot of data in it), user should not be able to query data which exceed the threshold limit set on Web applications Document versions can slow down an upgrade process. If you do not have to keep multiple versions, use the object model to find old versions and remove them or ask users to delete unnecessary documents version manually The default authentication type in SharePoint 2013 is “Claim based”. You can still create web application with” Classic authentication” in SharePoint 2013 through PowerShell, but it is recommend using Claim based Authentication in SharePoint 2013 web apps for variety of reasons.  Also, windows Classic mode authentication is deprecated in SharePoint 2013. You cannot upgrade “FAST Search Centre” sites to the SharePoint 2013 environment. The current “FAST Search Centre” sites can continue to work in SharePoint 2010 mode after upgrade. If you want the have new SharePoint 2013 functionality, you have to create ” Enterprise Search Centre” sites in SharePoint 2013 mode.  

Programmatically show processing screen in SharePoint 2010

25. May 2012 08:45 by Rashid Aziz in Sharepoint blogs  //  Tags: ,   //   Comments
Some time when writing a custom solution in SharePoint which takes some time to process, it is nice to show end user some message screen saying something like “Please wait we are dealing with your request”. In SharePoint 2010 this functionality is available out of the box, we can call SPLongOperation class in code and display the below screen with custom message and also can redirect to a different page after completion. // Initialise SPLongOperation object and specify message you want end users to see. SPLongOperation lp = new SPLongOperation(this.Page); lp.LeadingHTML = "<div><h2>Processing Request</h2></div>"; lp.TrailingHTML = "<div><h3>Please wait, your request is being processed</h3></div>"; lp.Begin(); // long running code start  // long running code end lp.End(Customers.DefaultViewUrl, Microsoft.SharePoint.Utilities.SPRedirectFlags.Default, this.Context, ""); I hope this will help.

Avoid password prompt while open a document in SharePoint

9. May 2012 06:12 by Rashid Aziz in Sharepoint blogs  //  Tags: , ,   //   Comments
To make SharePoint site a trusted site in order to avoid multiple logon prompts while opening or downloading a document, these following changes are required on client pc. 1. Open Internet Explorer 2. Log on to the site http://SharepointSiteCollectionURL/  or simply copy and paste this URL if you cannot access the site 3. On the Internet Explorer menu bar, select the "Tools" menu, then select "Internet Options" 4. Select the "Security" and then click "Trusted Sites" zone 5. Click the "Sites" button Add the portal address in the "Add this website to the zone" box. Click "Add" Don’t check "Require server verification (https) for all sites in this zone"  option If the site web address is not in the input field, then copy and paste it from the browser address at the top of your browser window. Click on “close” 6. Under the trusted site zone Click on the "Custom Level" button 7. Scroll down to the middle and enable the "Display mixed content" 8. Scroll down to the bottom Under "User Authentication/Logon", select "Automatic logon with Current Username and Password" and click "OK" 9. Click "OK" twice to close all dialog boxes 10. Close all instances of internet explorer 11. The next time you open Internet explorer and log on to site make sure the "Remember my password" option is selected on “Authentication dialog” 12. Now go to a document library and try to download or open a document in MS office, it should not prompt you for credential again. Enjoy ! J

SharePoint 2010 library “New Document” option is greyed out

3. May 2012 03:47 by Rashid Aziz in Sharepoint blogs  //  Tags: ,   //   Comments
 We have upgraded a SharePoint intranet site form SharePoint 2007 to 2010. While I was fixing the minor issues in new site I came across this issue. I could not create any document in document library because the “New Document” option was greyed out in ribbon as shown below. There was not any issue with permissions as I was the site collection administrator. There are couple of different options to try to fix this issue. Enable “Client Integration” in web application settings. Disable “User Access Control” UAC .Check the following article http://www.petri.co.il/disable-uac-in-windows-7.htm Go to Library > Library settings > Advanced settings  > and  Allow management of content types to TRUE

SharePoint 2010 time zones setting programmatically

11. April 2012 04:00 by Rashid Aziz in Sharepoint blogs  //  Tags: , ,   //   Comments
The SharePoint 2010 server is always set to a specific time zone. Users from all over the world can change the time zone by using “My regional settings”. I wanted to achieve this programmatically as a batch operation. To do this, I have used the following code. SPRegionalsettings spRegnal= new SPRegionalSettings(web, true); spRegnal.TimeZone.ID = 2 ;     // Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London User.RegionalSettings= spRegnal ; The SPRegionalSettings takes two parameters, the SPWeb and a Boolean. Set the time zone ID and finally get the SPUser object and assign the regional settings to that user.  

Change authentication mode in SharePoint 2010

 In the following article I will explain how to change SharePoint 2010 authentication mode. In the following example I will change authentication provider of SharePoint 2010 web application from windows authentication to claim base authentication. To do this you need to user SharePoint 2010 management shell Go to start menu > All programmers > SharePoint 2010 products > SharePoint 2010 management shell Type and execute the following command $WebAppName = “http://eblogin.com” $account = “SPdomain\ebloginAdmin” $wa = get-SPWebApplication $WebAppName Set-SPwebApplication $wa –AuthenticationProvider (New-SPAuthenticationProvider) –Zone Default A confirmation message will appear, type "Y" and press enter Now check the authentication provider from central admin. It should show "claims based authentication".

Testing custom solution options for SharePoint Online (office 365)

10. April 2012 06:13 by Rashid Aziz in Sharepoint blogs  //  Tags: , ,   //   Comments
Deploying and testing solution to SharePoint online is different from SharePoint on premises environment. For SharePoint online we can only create sandbox solutions which are site collection scoped. There are two options for SharePoint online testing environment 1. Create new site collection Our goal here is to provide separate environment for testing solutions. SharePoint sandboxed solutions are site collection scoped, so we can create new site collection for testing custom solution before deploying it to production site collection. This option will not work if your code required making changes on tenant level.  E.g. if you are making use of BCS, this might be not a good option. 2. New Office 365 account (tenant) If you want to make sure that there should be a separate environment for testing in cloud, then consider this option. You can buy a test environment license for few users, or a 30 days trial version can be used for testing purpose.

Potentially excessive number of SPRequest objects, SharePoint error

26. March 2012 06:45 by Rashid Aziz in Sharepoint blogs  //  Tags: , ,   //   Comments
I got this error in ULS log file while using one SharePoint application which was developed by third party. I have checked the code and it was disposing the SP objects correctly. The site was running really slow, and it takes about 40 seconds to load the home page. Site structure: Our application has 5 sites under a site collection and about 500 sub sites underneath those 5 sites. Reason of error: The “show subsites” option in navigation setting was checked, so when the page loads it also load 5 sites in navigation menu and all 500 sub sites links as a dropdown link menu. The navigation menu is shipped with SharePoint product, the way it is designed that it use SP Request object to build each navigation link and doesn’t dispose those object automatically (Reason: if the page do refresh, it does not need to re-create all object again) Resolution: Go to site collection home page Click site action> site settings Click “Navigation” link under “Look and Feel” section Uncheck “Show sub sites” under “global navigation” and “current navigation” as shown below If you need that navigation link for all sub sites should be available for user, think about other ways to getting this functionality (e.g. custom navigation), or reconsider your application structure. Results: After doing the above changes, I did not see any log saying “Potentially excessive number of SPRequest objects“. Also site performance increased dramatically as the home page loads in 4 seconds. J Hope this will help.

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 configure PerformancePoint service in sharepoint 2010

Today I will show you how to configure PerformancePoint service in SharePoint 2010. The PerformancePoint service is integrated in sharepoint 2010 environment. The PerformancePoint service is sharepoint 2010 enterprise feature, as long as you have enterprise feature switched on the PerformancePoint service will be available. Installing PerformancePoint Service Application Make sure that you have enterprise version of SharePoint 2010 installed. Open sharepoint 2010 central admin site Click on Manage Service Applications under Application Management Click on new from top ribbon and select “PerformancePoint Service application” Provide the service app name, SQL database configuration, application pool and select security account for App Pool. Click ok, you will see the following if “PerformancePoint Service application” installed successfully. Starting the PerformancePoint service Open the SharePoint 2010 central administration go to > System Settings > Manage services on server (under Servers category) Click the start link to start “PerformancePoint Service”; you will get the following when it is started. Setting up a secure store account You cannot access the performance points unattended service account to connect to data sources without secure store account. Open sharepoint 2010 central admin site Click on Manage Service Applications under Application Management Click on the Secure Store Proxy and click Manage from the top ribbon You will get a message saying ‘Generate a new key’, Click Edit on the ribbon then say Generate a new key Setting up unattended service account Open sharepoint 2010 central admin site Click on Manage Service Applications under Application Management Click on “PerformancePoint service application” link From setting page click on the first link “PerformancePoint Service Application Settings” In the “Unattended Service Account” section, enter the username and password for querying the data sources Activate PerformancePoint Site Collection feature Open your Business Intelligence site and navigate to Site Actions > site settings > Site Collection Features (option under “Site Collection Administration” tab) and active the “PerformancePoint Site Collection features” and shown below.    You have done all configurations, for testing the configuration Open a Performance Point “Business Intelligence Centre” site and click on “Run Dashboard Designer” button. If you have effectively created a PerformancePoint site collection, you should be able to do the followings Able to browse to the BI Centre Can launch Dashboard Designer Should be able to connect to a data source using the unattended service account

Stay connected

SharePoint Links

Month List