Friday, July 13, 2012

Configure User Profile Service Application

User Profile Service Application is a shared Application of SharePoint 2010 used to manage user’s profiles of organization, synchronizing profiles with active directory and creating My Sites for users.
1)  Open SharePoint 2010 Central Administration
2)  On Quick Launch, Click on Application Management and then click “Manage Service Applications” Under Service Applications Section.
3)  On Manage Service Application Page click on “New” and select User Profile Service Application.
4)  On Create New User Profile Service Application window type

   a)  Name : User Profile Service Application1
   b)  Application Pool Name : UserProfileServicePool
   c)  Configurable : POINT\Sharepoint_Farm User

After typing these values click on “Create” Button at down.
Service Application will create. After Creating Service Application, we will start necessary services for service application
 
5)  On Quick Launch menu of central Administration site click on “System Settings” then click on “Manage Services on Server” Under servers Section.
 
6)  On Services on Server window find out

   a)  User Profile Service and click on start.
   b)  User Profile Synchronization Services and click start.
7)  To see timer job, on Quick Launch of central Administration site , click on Monitoring and then click on check job status under timer jobs section.
Under Running Jobs We Must have “ProfileSynchronizationSetupJob”
 
8)  Ensure that both the services have started.
   a)  User Profile Service.
   b)  User Profile Synchronization Services.

On Quick Launch menu of central Administration click on “System Settings” then “Manage Services on Server” Under servers Section and check it.
 
9)  Also ensure that Forefront Identity Manager Service and Forefront Identity Manager Synchronization Service Has started.
 
10)  Restart IIS Server.
   a)  Go to start, right click on command prompt, then click run as administrator.
   b)  Type IISRESET
 Go to Administrative Tools then click on Services and check it.
11)   Now open our service application

On Quick Launch of central Administration site, click Application Management then “Manage Service Applications”, then “User Profile Service Application1” Link. We will have following page, where we can manage user profiles, synchronization with Active Directory, setup My Sites etc.
 

Creating connection with Active Directory

1)  On Quick Launch of central Administration Site, click Application Management then “Manage Service Applications”, then “User Profile Service Application1” Link.
2)  On Synchronization Connections page click on “Create New Connection”
3)  On add new synchronization connection page use following values.
   a)  Connection Name: POINT Active Directory Users.
   b)  Type : Active directory
   c)  Forest Name : POINT.COM
   d)  Account Name : POINT\SharePoint_Farm

4)  On Quick Launch of central Administration, click Application Management then “Manage Service Applications”, then “User Profile Service Application1” Link.
And click on “Start Profile Synchronization”. Synchronization Process will start; look at right side on page we have status “Synchronizing”
It will take 10 to 15 to finish this process. Press F5 until Synchronization status is Idle. 


Reference link

 

 
 
 

 

In SharePoint 2010, Normal search is working and People search result is not working fine. Why? Finally, you may have configured the user profiles synchronization & Search services. Also, you may be able to see the number of profiles under "User profile service" and contents under "Search Service".

Finally, you may have configured the user profiles synchronization & Search services. Also, you may be able to see the number of profiles under "User profile service" and contents under "Search Service". 


Reason:
You may have forgot to add the URL to crawl the people in Search service "ContentSource". So, just add the exact url which will start "SPS3://".

Example:
SPS3://km.sensoft2000.com (just an example)
 
sps3://sreenu:1111
 Thats it....
 
 

If you are trying to configure a new synchronization connection in your SharePoint 2010 environment and you get the error:Synchronization Connection: “MOSS MA not found”

If you are trying to configure a new synchronization connection in your SharePoint 2010 environment and you get the error:
 Check that the Forefront Identity Manager Service is started in your services.msc (not sure why mine wasn’t started automatically). 


 
Check that the Forefront Identity Manager Service is started in your services.msc (not sure why mine wasn’t started automatically).

Tuesday, June 5, 2012

How to enable Sync to SharePoint Workspace for SharePoint document libraries

Enable Sync to SharePoint Workspace using SharePoint Object Model:



  1. Open Visual Studio 2010.
  2. Go to File => New => Project.
  3. Select Console Application template from the installed templates.
  4. Enter the Name and Click on Ok.
  5. Add the following Reference.

    Microsoft.SharePoint.dll
  6. Add the following Namespace.

    Using Microsoft.SharePoint;
 static void Main(string[] args)
        {
            using (SPSite site = new SPSite("http://demoshare:6969/sites/"))
            {
                using (SPWeb web = site.OpenWeb())
                {
                    SPList list = web.Lists.TryGetList("History");
                    if (list != null)
                    {
                        //Enable Sync to SharePoint Workspace
                        list.ExcludeFromOfflineClient = false;
                        //To Disable Sync to SharePoint Workspace => list.ExcludeFromOfflineClient = true;
                        list.Update();
                        Console.WriteLine("Sync to SharePoint Workspace is Enabled");
                    }
                    else
                    {
                        Console.WriteLine(list.Title + " does not exists in the site");
                    }
                    Console.ReadLine();
                }
            }
        }
  1. Build the solution.
  2. Hit F5.
enabled sync to workspace button.

Error Type:“The Web application at http://sharepointserver could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.”

 building applications in Visual Studio 2010 as Console applications or Windows Forms application,i got above error.
1. Under Project Properties –> Application, Ensure that the target framework to be compiled against is .NET Framework 3.5
 2. Under Project Properties –> Build, Ensure that the platform target is set to x64


Solved this error


Saturday, June 2, 2012

Configuring Forms Based Authentication for SharePoint 2010 using IIS7

Follow This Article Link

ErrorType-"HTTP Error 503. The service is unavailable."

Go to iis ,next select site in application pol


To change the identity acount attached to app pool, select app pool and right click on it. Select the ‘Advanced Settings’.
 Just use administrator and password and it will work or use domain/username and password.

 After Browse The Site its working.