Posts

Showing posts with the label SharePoint 2010

Configure Form Based Authentication (FBA) in SharePoint 2010

Image
Steps to Configure FBA in SharePoint 2010  Below are the steps required to configure FBA in SharePoint 2010. I will be using MS SQL database as membership store for users.   A) Setting up ASP.NET Forms Authentication User and Role Data Source  1. Create Database  2. Configure Membership and Role Provider  3. Create User B) Create Web Application and Site Collections C) Configure Web.Config file  1. Configuring FBA web application web.config file 2. Configuring Central Administration web application web.config file 3. Configuring Security Token Service web.config file D) Adding User Policy to the FBA Web Application E) Verification Steps  A) Setting up ASP.NET Forms Authentication User and Role Data Source  This section explains creation of database which is used to store user's information such as credentials and roles which is used for Form Authentication. This section also explains the configuration...

The problem is getting a blank page instead of Central Administration after the configuration of Sharepoint on the machine

Image
Cause of the problem: The following authentication mechanisms are not installed or disabled on the IIS Digest Authentication Basic Authentication Windows Authentication To install them open command prompt and run the following command Command   start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;WAS...

How to Configure the ReportViewer in Sharepoint 2010

Follow The below Steps... 1. Navigate the  c:\inetpub\wwwroot\VirtualDirectories\[Your port Number] 2. Make a backup copy of  web.config 3. Open  web.config  in some text editor , may be notepad     Look for following tag , ensure  enableSessionState="true"  4. Look for    tag and add below statement as last child node ( if not there already ) 5. Look for this tag below and update version to  10.0.0.0  6. Look for   and comment the entry with  name=ReportViewerMessages

SharePoint 2010 Windows PowerShell Interview Questions

Q. What is Windows Powershell ? Ans.  Windows PowerShell is a new Windows command-line shell designed especially for system administrators. In the SharePoint administration context, Windows PowerShell is another administration tool that supersedes the existing Stsadm.exe. Q. How is Windows Powershell different from Stsadm ? Ans.  Unlike stsadm, which accept and return text, Windows PowerShell is built on the Microsoft .NET Framework and accepts and returns .NET Framework objects. In addition to that it also gives you access to the file system on the computer so that you can access registry,digital signature certificate etc.. Q. What are cmdlet's? Ans.  Windows PowerShell introduces the concept of a cmdlet which are simple build in commands, written in a .net language like C# or VB. Q. Can you Create PowerShell scripts for deploying components in SharePoint ? Ans . If you are creating a webpart with VS 2010 then you can deploy it using ctrl + f5. However, to act...

Displaying PDFs from a Dropdown Menu

Image
  Browsing the MSDN SharePoint forums can really bring up some interesting ideas. Recently there was a question about how to display collections of PDF files in a web page. The question included a link to an article on embedding PDFs in SharePoint 2007 by Sharon Richardson. Sharon’s approach used an tag. The tag’s SRC attribute is not updateable by JavaScript and I did not want a hard coded PDF file. I got to playing around with this and worked up a solution that uses an  and borrows some JavaScript from an article I wrote a while back. The JavaScript was used to convert a Links List into an HTML dropdown list. Here I will use it to convert a library into a dropdown list and a PDF viewer. Note: Displaying PDFs in SharePoint requires two things: Your users must have a PDF viewer installed that can display PDFs in a browser For SharePoint 2010 your server administrator much change “Browser File Handling” from Strict to Permissive for your web application (see her...

Open SharePoint 2010 modal dialog and refresh the parent page from custom form

Objective: 1) Open a SharePoint 2010 popup and refresh the parent page when one closes it. 2) Build a custom form that at “submit event” closes the popup and refreshes the parent page. Solution : -            Open a Popup using “Javascript” and “ SP.UI.$create_DialogOptions();” -            Add the method “CloseCallback” using the “dialogReturnValueCallback” property -            Add some JavaScript code inside the CloseCallback to reload the parent page, like the following example: < a   href ="javascript:openModalDialog('form.aspx');"> Open My Custom Form a > < SharePoint : ScriptLink   ID ="ScriptLink1"   Name ="sp.js"   runat ="server"   OnDemand ="true"   Localizable ="false"   /> < script   type ="text/ecmascript">      var...

SharePoint: Hide a web part for selected users

Image
"Out of the box" there are no "deny permission" features in SharePoint, only grant permissions. If you have a group called Sales with 1000 users, and you would like to use the SharePoint Audience feature to display a web part for everyone in Sales except for Sam, Susan and Bob, you will have to create a new group with 997 users named "Sales except for Sam, Susan and Bob" (and then maintain two groups going forward. But there is a way… Here's a trick that starts by using a Content Editor Web Part to hide another web part from everyone. By creating a group with our three problem people and using that as an Audience for this CEWP we can selectively hide another web part.  Before we start, Audiences are not available in WSS 3.0 (2007) or SharePoint 2010 Foundation. For this trick you need to do four things: Create the group or audience of people to hide things from Discover the ID of the web part you want to hide (see here for  2007  and  2010 ...