Sunday, December 11, 2011

Enable Upload Multiple Documnets Option in FBA Site

When you implement FBA in SharePoint , you will find that some options are grayed out or some options are missing in menu. No matter you have full permissions on site and you have installed MS Office 2003 or later, Even then below mentioned options are .Missing Items can be as followed:

Upload

Upload Multiple Documents

Actions

Edit in Datasheet

Open with Windows Explorer

Connect to Outlook

Export to Spreadsheet.

Now you wonder that above mentioned options are available in Windows based authentication but not in Form Based Authentication.

Well this is the problem of “Client Integration”. When we create a site in sharepoint using windows based authentication i.e

default site,”Client Integration” is enabled by default but in case of Form Based Authentication this option disabled by default

and we have to enable this. Well no probs at all find detailed steps to resolve the issue.

In SharePoint 2010

1. Open Central Administration

2. Click on Application Management Tab

3. Under Web Applications click on Manage web applications

4. Select Web Application and then select Authentication Provider option from ribbon

5. Select Zone in which FBA is implemented

6. Under Client Integration section that is place in last, click “Yes” in “Enable Client Integration?”

7. Save and you’ve done that.

8. Refresh your site and now you will find that all options that are missed is now available.

In MOSS(SharePoint 2007)

1. Open Central Administration

2. Click on Application Management Tab

3. Under Application Security section, click on Authentication providers

4. Now select desired web application

5. Select Zone in which FBA is implements and clicked that Zone.

6. Under Client Integration section that is place in last, click “Yes” in “Enable Client Integration?”

7. Save and you’ve done that.

8. Refresh your site and now you will find that all options that are missed is now available.

Tuesday, September 27, 2011

SharePoint 2010 / MOSS Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))

This Error occurs when adding a wepart to page or changing webpart from one zone to another zone because the webpart is disposing the spsite or spweb object. If your code looks like below:

using (SPWeb web = SPContext.Current.Web)

{
//some coded here

}

Change it to the format below:

SPWeb web = SPContext.Current.Web;


// your code here

And the Exception (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) should be resolved.

Friday, April 1, 2011

Migrating MOSS 2007 SSP/MySites to SharePoint 2010 in a database attach scenario While moving Sharepoint 2007 Mysites and profiles to SharePoint 2010 we have faced lot of issues. first we did this by following spmike blog but we have faced accesing problems other than server(while clicking people search result link). Here i am just modifing the some of the spmike blog content only, so this credit goes to spmike only. Below are the steps.....

1. Backup your existing MySites content database(s) on your MOSS 2007 farm SQL Server

2. Back up existing SSP database on MOSS 2007 farm SQL Server

3. Move both database .BAK files to the new SQL Server

4. Restore the SSP database from .BAK as database named AllProfile_DB(in my case) on your new SQL Server

5. Restore the MySites database from .BAK as database named WSS_Content_MySites (in my case) on your new SQL Server

6. Create a new Web Application in your SharePoint 2010 Central Administration site to host your migrated MySites content (e.g. http://gss.mysites)

7. Create a root site collection in the above created Web Application at location “/” by using My Site Host Template located under the Enterprise Tab (How to create MySite )

8. Attach and upgrade the restored 2007 MySites database (i.e. WSS_Content_MySites) using the SharePoint 2010 Management Shell

Mount-SpcontentDatabase –Name WSS_Content_MySites –WebApplication http://gss.mysites

9. Turn off the following services in your SharePoint 2010 Central Administration

• site User Profile Service

• User Profile Synchronization Service

10. Delete existing User Profile Service Application(s) if they already exist [Central Administration -> Application Management -> Manage Service Applications] Make sure to check the box for delete associated data/content

11. Reset IIS

12. Create a new User Profile Service Application in Central Administration [Central Administration –> Manage Service Applications –> New] Name = User Profile Service Application Create New App Pool “User Profile Service Application” DOMAIN\farm_account Use the restored 2007 SSP database as the “Profile Database Name” (AllProfile_DB) Accept all other default database names Enter the newly created MySites SiteCollectionurl (e.g. http://gss.mysites) as the default MySites location for the new User Profile Service Application

13. Go to “Administrators” in the ribbon menu for the User Profile Service Application and verify that DOMAIN\farm_account has “Full Control” rights

14. Start the User Profile Service in Central Administration [Central Administration –> Application Management –> Manage Services on Server]

15. Start the User Profile Synchronization service in Central Administration [Central Administration –> Application Management –> Manage Services on Server] Use DOMAIN\farm_account credentials This will take a few minutes…

16. Follow progress in ULSViewer.exe if you are concerned it is failing & filter by Category=”User Profile”

17. Reset IIS

18. In service.msc on your Central Administration host server (i.e. “App Server”), verify the two ForeFront Identity Management Windows services Services are started set to startup “Automatic” Running as DOMAIN\farm_account

19. Setup Profile Import [Central Administration -> Manage Service Applications -> User Profile Service Application - click on title] Click on the link to “Add New Synchronization Connection” [see examples below]

Name = DOMAIN

Forest Name = sub.domain.local

Specify a DC = dc.sub.domain.local

Authentication = Windows Authentication

Account Name = DOMAIN\ad_sync_account

Make sure your chosen account has “Replicating Changes” rights in AD [for more details refer to this article] Click “Populate Containers” Click “Select All” “OK”

20. Run a Full Import Central Administration –> Manage Service Applications” -> “User Profile Service Application” -> “Start Profile Synchronization” -> select Full Import radio button option This will take a few minutes..

21. Setup Profile Sync schedules [Central Administration –> Monitoring –> Timer Jobs] Test the MySites site with a domain user account…success!


Might be it will help somebody.....