Blogroll

Saturday, August 18, 2012

Error: 0xE0000021 OneNote needs a password to sync some of your notebooks. Click here to see the list of sections and notebooks that require passwords

Problem Description:
You can’t sync from an OneNote 2010 notebook to SkyDrive, and you receive the following 0xE0000021 error message:

Error Message:
Error: 0xE0000021
OneNote needs a password to sync some of your notebooks. Click here to see the list of sections and notebooks that require passwords.

Probable causes:
Problems syncing OneNote notebooks with your SkyDrive may occur for one or more of the following reasons:
1)   This issue can occur if you have not installed the latest updates.
2)   You may not have the latest version of Windows Live Sign-in Assistant.
3)   This issue can be caused by a conflict with multiple Live IDs.

Resolution:

Method 1: Install the latest updates

Installing any important, recommended, and optional updates can often correct problems by replacing out-of-date files and fixing vulnerabilities. To install the latest updates, click the link specific to your version of Windows and follow the steps in that article:

Note: For Microsoft Office 2010 users, installing the latest updates will include Service Pack 1 (SP1). SP1 includes updates to OneNote 2010 that may resolve issues syncing OneNote notebooks with your SkyDrive account. OneNote 2010 SP1 uses Windows Live Essentials to log onto Windows Live SkyDrive and improves how OneNote synchronizes with SkyDrive.

For an overview of Office SP1 improvements, see Description of Office 2010 SP1 .

Install Windows updates in Windows 7

Install Windows updates in Windows Vista

Install Windows updates in Windows XP

If installing the latest updates did not resolve your issue, continue to method 2.

Method 2: Install the latest version of Windows Live Sign-in Assistant

Issues syncing OneNote notebooks with your SkyDrive account can be resolved by updating to the latest version of Windows Live Sign-in Assistant. Windows Live Sign-in Assistant is part of Windows Live Essentials which also includes Windows Live Messenger, Photo Gallery, Movie Maker, Mail, and more. To resolve this issue, Windows 7 and Windows Vista users can install the latest version of Windows Live Essentials or to install only the Windows Live Sign-in Assistant, click the link specific to your version of Windows:

Windows 7 and Windows Vista

Windows XP

Note: If you need to uninstall and then reinstall Windows Live Essentials, see How to remove and reinstall Windows Live Essentials .

If installing the latest version of Windows Live Sign-in Assistant did not resolve your issue, continue to method 3.

Method 3: Remove Windows Live IDs from Credential Manager

This step applies to Windows 7, and Windows Vista

Credential Manager allows you to store credentials such as user names, and passwords that you use to log on to websites. Sometimes Credential Manager may not be able to acquire log on credentials, and removing your Windows Live IDs may resolve the issue.

Here’s how to remove your Windows Live IDs from Credential Manager:

This step applies to Windows 7, and Windows Vista

For Windows 7
1)   Close OneNote.
2)   Open User Accounts by clicking the Start button, clicking Control Panel , clicking User Accounts and Family Safety (or clicking User Accounts , if you are connected to a network domain), and then clicking User Accounts .
3)   In the left pane, click Manage your credentials.
4)   Click the vault that contains the Live ID credential that you want to remove.
5)   Click the Live ID credential that you want to remove, and then click Remove from vault .
6)   Repeat step 5 until you have removed all of your Live ID credentials from the vault.
7)   Open the OneNote notebook you want to sync.
8)   Click Web.
9)   Sign in with your Windows Live ID and password, and try to sync your OneNote notebook with SkyDrive.

For Windows Vista
1)   Close OneNote.
2)   Open User Accounts by clicking the Start button, clicking Control Panel, clicking User Accounts, and then clicking User Accounts.
3)   On the Advanced Tab, click Manage Passwords.
4)   Click the name of the credential that you want to remove, and then click Remove
5)   Repeat step 4 until you have removed all of your Live ID credentials.
6)   Open the OneNote notebook you want to sync.
7)   Click Web.
8)   Sign in with your Windows Live ID and password and try to sync your OneNote notebook with SkyDrive.

'New Document' requires a Microsoft SharePoint Foundation-compatible application and web browser. To add a document to this document library, click the 'Upload Document' button.

In Microsoft OneNote 2010, you can share a notebook so that you can access it on other computers or on the Web, or so that you can work in it together with other people. Taking notes as a group is a collaborative process. As a collaborative tool, OneNote offers far more than the ability to send static notebook pages via e-mail.

When you share a notebook on a SharePoint site, you can use the features of a library to manage and share your notebooks. You can manage who has permission to view the notebook or contribute notes. You can store additional information about the notebook or its pages, such as the department name or project number. You can also track versions of the notebook, so that people can view or restore an earlier version if needed and receive updates when the content changes by using alerts or RSS Feeds.

Problem Description:

Consider the following scenario:
• You have a server that is running Microsoft SharePoint Foundation 2010. 
• You create a document library that uses the Microsoft OneNote 2010 template. 
• In the new document library, you click New Document. 

In this scenario, you receive the following error message:
'New Document' requires a Microsoft SharePoint Foundation-compatible application and web browser. To add a document to this document library, click the 'Upload Document' button.



Resolution:
To work around this issue, follow these steps:
1.  Start OneNote 2010. 
2.  On the File tab, click New. 
3.  Under Store Notebook On, click Network. 
4.  Type a name for the notebook in the Name field. 
5.  Under Network Location, select the SharePoint location where you want to add the OneNote notebook. 
6.  Click Create Notebook.

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues. Thank you.

An error occurred while attempting to sync this section or notebook. (Error code: 0xE4020005)

In Microsoft OneNote 2010, you can share a notebook so that you can access it on other computers or on the Web, or so that you can work in it together with other people. Taking notes as a group is a collaborative process. As a collaborative tool, OneNote offers far more than the ability to send static notebook pages via e-mail.

When you share a notebook on a SharePoint site, you can use the features of a library to manage and share your notebooks. You can manage who has permission to view the notebook or contribute notes. You can store additional information about the notebook or its pages, such as the department name or project number. You can also track versions of the notebook, so that people can view or restore an earlier version if needed and receive updates when the content changes by using alerts or RSS Feeds.

Problem Description:
When trying to sync a particular notebook using OneNote 2010 client to a SharePoint 2010 site you receive an error "An error occurred while attempting to sync this section or notebook. (Error code: 0xE4020005)"

The problem happens for one user on two different machines (Win7/2008R2).

Another machine synchronizes successfully with the same user.  

Error Message:
An error occurred while attempting to sync this section or notebook. (Error code: 0xE4020005)

How i resolved the issue/Resolution?
Ran the following from the Start Search box
1. ONENOTE.EXE /SafeBoot
2. Click on the Clear Cache button

WARNING: Any changes not synchronized to SharePoint will be lost.
You can open the backup to recover the lost information but it will need to be manually reconciled in the new local copy of the notebook.

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues. Thank you.

Friday, August 17, 2012

Send to OneNote button is missing

Problem Description:
When you work in Microsoft Outlook, Microsoft Office OneNote 2007 buttons or OneNote 2010 buttons may be missing as follows: 

• When you work in an e-mail item, the Send to OneNote button is missing. 
• When you work in a calendar item or in a task item, the Notes about This Item or the Linked Meeting Notes button is missing. 

This issue may occur when the OneNote add-in is disabled in Outlook or if the Outlook Integration has not been installed.

For Windows Vista or Windows 7

1.  Click Start, type programs and features in the Search box, and then press ENTER. 
2.  Right-click on the version of Office or OneNote that is installed, and then click Change. 
3.  Select Add or Remove Features, and then click Continue. 
4.  Expand Microsoft OneNote. 
5.  Expand Send to OneNote Add-ins. 
6.  If there is an X next to Outlook Integration, click on the X, and then click Run from My Computer. 
7.  Click Continue. 

To enable the OneNote add-in in Outlook, follow these steps.

For Outlook 2010
1.  On the File menu, click Options. 
2.  Click Add-ins. 
3.  If OneNote Notes about Outlook Items is listed under Inactive Application Add-ins, follow these steps: 
• In the Manage box, click COM Add-Ins, and then click Go. 
• In the COM Add-Ins dialog box, click to select the OneNote Notes about Outlook Items check box, and then click OK. 

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues J Thank you.

The "Send To OneNote 2007" printer is missing in the Print dialog box in a 2007 Office program

In a 2007 Microsoft Office program, the Send To OneNote 2007 printer is missing in the Printer list in the Print dialog box.

This issue can occur when the Send To OneNote 2007 printer driver is missing.

NOTE:  You will be unable to install the Send To OneNote 2007 printer driver on a 64-bit version of Windows as it is incompatible with 64-bit operating systems.

To resolve this issue, use one of the following methods.

Method 1: Repair the 2007 Office program installation
1.  Click Start, and then click Run. 
2.  Copy and then paste (or type) the following command in the Open box, and then press ENTER:
appwiz.cpl 
3.  In the Currently installed programs list, click the installed version of the 2007 Office program, and then click Change. 
4.  Click Repair, and then click Continue. 

Method 2: Install a generic printer driver, and then configure it for Microsoft Office OneNote 2007

1.  Install the generic printer driver in Windows Vista. To do this, follow these steps:
·         Click Start, type printers in the Start Search box, and then click Printers in the Programs list. 
·         On the left side of the page near the top, click add a printer. 
·         In the Add Printer dialog box, click Add a local printer. 
·         Click to select the Use an existing port option, select the appropriate port, and then click next. For example, you can select LPT1. 
·         Under Manufacturer, select Generic, select Generic / Text Only under Printers, and then click next. 
·         If you receive the following message, click to select the Use the driver that is currently installed (recommended) option, and then click Next :
·         Which version of the driver do you want to use? 
·         Click next, and then click Finish. 

2.  Configure the generic printer for OneNote. To do this, follow these steps:
§  In the printer list, right-click the Generic / Text only printer, and then click Properties
§  Click the Ports tab, and then click to select the Send to Microsoft OneNote Port check box. 
§  Click the Advanced Tab, select Send to Microsoft OneNote Driver in the Driver list, and then click Print Processor. 
§  Under Print processor, select OneNotePrint2007, select RAW under Default data type, and then click OK. 
§  Click the General tab, change the name of the printer to Send to OneNote 2007, and then click OK.

Thursday, August 16, 2012

OneNote has encountered a problem and cannot complete the action

Using shared notebooks with SharePoint sites. When Office OneNote 2007 notebooks are stored in a shared location, such as a SharePoint library, multiple users can simultaneously access shared notes and contribute to them on an ongoing basis. A library is a central location on a SharePoint site where people store and manage their files.

When you share a notebook on a SharePoint site, you can use the features of a library to manage and share your notebooks. You can manage who has permission to view the notebook or contribute notes. You can store additional information about the notebook or its pages, such as the department name or project number. You can also track versions of the notebook, so that people can view or restore an earlier version if needed and receive updates when the content changes by using alerts or RSS Feeds.

The 2007 Microsoft Office Suites provide the best level of rich, contextual integration with Windows SharePoint Services and Office SharePoint Server, allowing users to interact with SharePoint sites without leaving their Office programs and to have two-way synchronization with collaborative information and documents as well as business data stored on SharePoint sites.

Problem Description:
§  Synchronization problem between SharePoint and Office OneNote application.
§  Updates are not being reflected on the users end/not able to see the current data i.e. correct versioning information
§  After having proper permissions at the site level but users are still getting read only notebooks

Error Message: OneNote has encountered a problem and cannot complete the action

Resolution: This problem has been fixed in Microsoft Office 2007 service pack2 and use the following links for the detailed description.

Reference:
Microsoft Office 2007 service pack2 can be downloaded from: http://www.microsoft.com/en-us/download/details.aspx?id=5

Complete summary based on number of issues fixed in service pack2: http://office-watch.com/t/n.aspx?a=850

Library "Open in Explorer" - Known Issue with SharePoint 2013?

Issue: We get the Message on SharePoint 2013 Online Preview @ "open in explorer" click on libraries:
"Your client does not support opening this list with Windows Explorer"




Resolution:
- You do not have WebClient service running.
- You are using 64 bit version IE.
- You have installed 64 bit of office.


Refer to post:
- http://blogs.technet.com/b/meamcs/archive/2012/05/01/how-to-add-desktop-experience-feature-on-windows-server-8-beta.aspx

- http://blogs.technet.com/b/asiasupp/archive/2011/06/13/error-message-quot-your-client-does-not-support-opening-this-list-with-windows-explorer-quot-when-you-try-to-quot-open-with-explorer-quot-on-a-sharepoint-document-library-in-office-365-site.aspx


SharePoint Foundation 2013 known issues

Recommended configuration for crawling large hosts

When defining content sources to crawl in SharePoint Search, the maximum number of threads that can simultaneously make requests to a host is set to 12 by default OOB. This value affects the rate of content discovery from the host. For all small and medium sized hosts (<10M), this thread count is sufficient. But if the target host is >10M, we recommend you increase the thread count.

Workaround For large hosts (>10M items), we recommend you set the number of threads to 32 or more. This is over-and-above the recommendation to have dedicated crawl targets that helps manage load on front ends efficiently without impacting performance observed by users of that host.

Some "15" or "2010" strings not updated to “2013” in SharePoint 2013 Preview Management Pack

Some "15" or "2010" strings aren’t updated to "2013" or "2013 Preview" in the User Guide, file names, and some user interface strings of SharePoint 2013 Preview Management Pack.

Workaround No workaround is available.

Management Shell shows an error when open

When you open the Management Shell, you see the following error message:

Could not create a CmdletConfiguration for CmdletName Start-BulkOperation, CmldetClass, CmdletHelpFile C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\CONFIG\PowerShell\Help\Microsoft.Office.Education.Institution.dll-Help.xml.

Cannot process argument because the value of argument"implementingType" is null. Change the value of argument "implementingType" to a non-null value. Workaround This error doesn't block any scenarios. The shell works for all cmdlets.

PerformancePoint items missing from BI Center left navigation pane

If you create a new BI site collection, you'll see it with navigation links missing.

Workaround To see the links, go to Site Settings > Navigation and change the site to use structural navigation.

Reference Click here

Cannot restore from recycle bin

The Recycle Bin provides a safety net when deleting documents, list items, lists, folders and files. When you or site visitors delete any of these items from a Web site, the items are placed in the Recycle Bin.

Problem Description:
Unable to restore files/folders from Site Collection Recycle Bin
When we try to restore we get the following exception:

Error Message: Unable to restore ‘file name’

Troubleshooting Steps:
1)   Checked on the path from where the Folder was deleted and confirmed that it was not modified or deleted i.e. all the top-level folders/sites where intact to get to the folder.

2)   Checked for the available quota on site by means of storman.aspx
·         Open the site
·         Site actions
·         Site settings
·         Site collection administration
·         Storage allocation (storman.aspx)

All looked fine still unable to restore

Resolution:
·         Checked the Document Library where the folder had to be restored and found a folder named similar to the folder which was to be restored. E.g. RC PHASETEST4 as to RC PHASETEST3

·         So, renamed the similar folder to something else and tried restore, it worked. Once restored reverted the renamed folder to original.

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you

Wednesday, August 15, 2012

The folder may be located in an unavailable location, protected with a password, or the filename contain illegal characters

Different users…different issues but all are using the same product i.e. SharePoint
And we are here to resolves the issues and guide them in right directions.

This time-I am sharing in interesting issues which is based on sharepoint designer. User opened a ticket by mentioning that she is getting the following error message while opening the site in sharepoint designer.

The folder 'http://localhost' isn't accessible. The folder may be located in an unavailable location, protected with a password, or the filename contains a / or \.
What needs to be done if we encounter such issues? If we notice carefully then we will come to know that the error message is self explanatory. Ok-what exactly?
Here are the guidelines by which you can check the parameters one by one and get back to me in case of any questions/queries/information required:
1)   There is no such site or folder?
2)   This location is inaccessible because you are using FORM Authentication? You need to extend the web application on another port to connect to SPD.
3)   URL contains illegal characters?
4)   URL contains file names i.e. default.aspx
5)   Check in Central Administration > Application Management > Authentication Providers. Make sure "Enable Client Integration" is set to "Yes".
Thank you. Please feel free to contact/any queries/any questions, I would be more than happy to help you as well as resolves your issues.

Use Central Administration to restore a Web application in SharePoint 2010

To restore a Web application by using Central Administration

1. Verify that the user account performing this procedure is a member of the Farm Administrators group. Additionally, verify that the Windows SharePoint Services Timer V4 service and the Farm Database Access account have Full Control permissions on the backup folder.

2. In Central Administration, on the Home page, in the Backup and Restore section, click Restore from a backup.

3. On the Restore from Backup — Step 1 of 3: Select Backup to Restore page, from the list of backups, select the backup job that contains the farm or Web application backup, and then click Next.

4. On the Restore from Backup — Step 2 of 3: Select Component to Restore page, select the check box that is next to the Web application, and then click Next.

5. On the Restore from Backup — Step 3 of 3: Select Restore Options page, in the Restore Component section, make sure that Farm\ appears in the Restore the following content list.

In the Restore Only Configuration Settings section, make sure that the Restore content and configuration settings option is selected.

In the Restore Options section, under Type of Restore, select the Same configuration option. A dialog box appears that asks you to confirm the operation. Click OK.

Click Start Restore.

6. You can view the general status of all recovery jobs at the top of the Backup and Restore Job Status page in the Readiness section. You can view the status for the current recovery job in the lower part of the page in the Restore section. The status page updates every 30 seconds automatically. You can manually update the status details by clicking Refresh. Backup and recovery are Timer service jobs. Therefore, it may take several seconds for the recovery to start.

If you receive any errors, you can review them in the Failure Message column of the Backup and Restore Job Status page. You can also find more details in the Sprestore.log file at the UNC path that you specified.

Error message when you try to add an existing Windows SharePoint Services 3.0 list to an Access 2007 database: "You do not have the necessary permissi

Symptoms:


You try to add an existing Microsoft Windows SharePoint Services 3.0 list to a Microsoft Office Access 2007 database. When the Windows SharePoint Services list contains a column name that has more than 64 characters, you receive an error message that resembles the following:


You do not have the necessary permissions to use the '' object. Have your system administrator or the person who created this object establish the appropriate permissions for you.Note The term "column name" is what you see in the SharePoint user interface. Colum name is the column’s display name.


Cause:


This problem occurs because the Access 2007 database engine disallows columns that have names that contain more than 64 characters.


MS KB Article:


Tuesday, August 14, 2012

Restore a Web application in SharePoint Server 2010 using Windows PowerShell

You can use Windows PowerShell to restore a Web application manually or as part of a script that can be run at scheduled intervals.

To restore a Web application by using Windows PowerShell

1. On the Start menu, click All Programs.
2. Click Microsoft SharePoint 2010 Products.
3. Click SharePoint 2010 Management Shell.
4. At the Windows PowerShell command prompt, type the following command:

Restore-SPFarm -Directory (BackupFolderName) -RestoreMethod Overwrite -Item (WebApplicationName) [-BackupId (GUID)] [-Verbose]

Where:
- BackupFolderName, is the full path to the folder you use for backup files.
- WebApplicationNam, is the name of the Web application that was backed up.
- GUID, is the identifier of the back up to use for the restore operation.

If you do not specify the value of the BackupID parameter, the most recent backup will be used. You cannot restore a Web application by using a configuration-only backup. You can view the backups for the farm by typing the following:
Get-SPBackupHistory -Directory -ShowBackup

SharePoint 2013 Downloads and Links

As we all know Microsoft released public beta for SharePoint 2013 recently. Here are below some good links to download all related stuffs to SharePoint 2013.

Hardware and software requirements for SharePoint 2013 - Click here

Download Microsoft SharePoint Server 2013 Preview: Click here

Product key for the above: 6RNT8-XV26M-GWH36-VMGQH-94MMH

Download SharePoint Foundation 2013 Preview: Click here

Download SharePoint Designer 2013: Click here

SharePoint 2013: presentation: IT pro training (PPTX): Click here

Download ebook for Deployment guide for SharePoint 2013 Preview: Click here

SharePoint 2013 training for developers (Videos): Click here

Download SharePoint 2013 training for IT pros (Videos): Click here

What changes from SharePoint 2010 to SharePoint 2013 preview: Click here

What's new in social computing in SharePoint Server 2013 Preview: Click here

SharePoint 2013 Preview installation and configuration guide: Click here

Capabilities and features in SharePoint 2013 (Video): Click here

Physical architecture and logical architecture of SharePoint 2013: Click here

API set in SharePoint 2013: Click here

SharePoint 2013 video tutorial link: Click here

Microsoft Office Professional Plus 2013 Preview: Click here

SharePoint 2013 forum for IT Professional and Developers: Click here

Microsoft SharePoint 2013 forum for IT Professional: Click here

Microsoft SharePoint 2013 forum for Developers: Click here

Hardware and software requirements for SharePoint 2013 Preview

In this article we will discuss about the Hardware and Software requirements for SharePoint 2013 preview.

SharePoint 2013 Preview can be installed in different scenarios like single server with built-in database installations, single-server farm installations, and multiple-server farm installations.

Hardware Requirement:

Single server with a built-in database or single server that uses SQL Server:

RAM: 8 GB
Processor: 64-bit, 4 cores
Hard Disk space: 80 GB

Single server with a built-in database or single server that uses SQL Server:

RAM: 24 GB
Processor: 64-bit, 4 cores
Hard Disk space: 80 GB

Web server or application server in a three-tier farm:

RAM: 12 GB
Processor: 64-bit, 4 cores
Hard Disk space: 80 GB

Database servers:

RAM: 8 GB for small deployments and 16 GB for Medium deployment
Processor: 64-bit, 4 cores for small deployments and 64-bit, 8 cores for medium deployments
Hard Disk space: 80 GB

Database Requirement mainly: Microsoft SQL Server 2008 R2 (Service Pack 1) 64bit or Microsoft SQL Server 2012 (64bit)

Software requirements:

Minimum requirements for a database server in a farm:

- 64-bit edition of Microsoft SQL Server 2012 or 64-bit edition of SQL Server 2008 R2 Service Pack 1

- 64-bit edition of Windows Server 2008 R2 Service Pack 1 (SP1) Standard, Enterprise, or Datacenter or the 64-bit edition of Windows Server 2012 Release Candidate Standard or Datacenter

- Microsoft .NET Framework version 4.5 Release Candidate (RC)

Minimum requirements for a single server with built-in database:

- Microsoft SQL Server 2008 R2 SP1 - Express Edition

- 64-bit edition of Windows Server 2008 R2 Service Pack 1 (SP1) Standard, Enterprise, or Datacenter or the 64-bit edition of Windows Server 2012 Release Candidate Standard or Datacenter

- Microsoft .NET Framework version 4.5 Release Candidate (RC)

Minimum requirements for front-end web servers and application servers in a farm:

- 64-bit edition of Windows Server 2008 R2 Service Pack 1 (SP1) Standard, Enterprise, or Datacenter or the 64-bit edition of Windows Server 2012 Release Candidate Standard or Datacenter.

- SQL Server 2008 R2 SP1 Native Client

Check the below link for more information on it:
http://technet.microsoft.com/en-us/library/cc262485(office.15).aspx

Monday, August 13, 2012

SharePoint 2010 Object Model Classes

Microsoft SharePoint Server 2010 offers a highly structured server-side object model that makes it easy to access objects that represent the various aspects of a SharePoint Web site. From higher-level objects, you can drill down through the object hierarchy to obtain the object that contains the members you need to use in your code. Reference

Here there are some SharePoint Object model classes.

In the top SPFarm class is there.

SPFarm: This reference the entire SharePoint Server Farm.
By using this you can create a new farm or you can connect to a existing a existing farm.

Namespace: Microsoft.SharePoint.Administration

SPServer: By using this class you can browse through the collections of servers belongs to the Farm.

SPSite: Represent a Site collection.

SPWeb: Represent a web site.

SPUserToken: The SPUserToken class represents a token for a valid SharePoint user.

SPList: SPList corresponds to a single list instance, whether that is a list of items or a document library.

SPListItem: This defines a reference to a specific item of a list.

SPDocumentLibrary: This type represents a document library.

SPFile: This class is used to enumerate the files contained in a document library.

SPPrincipal: This class is the parent class for SPGroup and SPUser.

SPControl: This class we need while developing web controls or Web Parts.

SPContext: This is a very useful class and it has some direct methods to access useful information about current requests.

Different DLLs for Client Object Model SharePoint

There are different client object model like managed client object model, ECMAScript object model, Silverlight client object model etc. To work with these object models SharePoint provides certain classes which exists inside some dlls. These dlls are very leightweight as compared to SharePoint server object model. So it is a good idea to know about the dlls used and there locations.

Managed Object Model:

Dlls needed:

- Microsoft.SharePoint.Client
- Microsoft.SharePoint.Client.Runtime

Location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI (If SharePoint installation done in C drive)

ECMAScript Object Model:

JS needed:

- SP.js , SP.Core.js , SP.Ribbon.js , and SP.Runtime.js .

Location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS (If SharePoint installation done in C )

Silverlight Object Model:

Dlls needed:

- Microsoft.SharePoint.Client.Silverlight
- Microsoft.SharePoint.Client.Silverlight.Runtime

Location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin (If SharePoint installation done in C drive)drive)

Client Object Model SharePoint 2010 Details:

MOSS 2007 provides Web services which are difficult to use and always returns XML documents and XML data needs to be parsed manually.

These are simple APIs to add, retrieve, update and manage data in SharePoint. There are some tasks you can not do using client object model like creating a web application.

These classes are very easy to use and prefix sp is removed in the naming of client object model classes. For example in Server object model if the class is SPList now in client object model the class name is List.

Behind the schene client object model interact with some wcf services to communicate with SharePoint.

To work with client object model you need to refer 2 dlls which can be found in the following locations, refer to Managed Object Model, as discussed above:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI

The 2 dlls are:

- Microsoft.SharePoint.Client.dll
- Microsoft.SharePoint.Client.Runtime.dll

Here is an example to create a list of type Announcement list by using SharePoint 2010 client object model.

using (ClientContext context = new ClientContext(http://Amardeep:8787/sites/Training))

{  //Create a new list

ListCreationInformation listCreationInformation = new ListCreationInformation();

listCreationInformation.Title = "My Announcements List";

listCreationInformation.Description += "Here is my list created by client object midel";

listCreationInformation.TemplateType = (int)ListTemplateType.Announcements;

listCreationInformation.QuickLaunchOption = Microsoft.SharePoint.Client.QuickLaunchOptions.On;

List list = context.Web.Lists.Add(listCreationInformation);

context.ExecuteQuery();
}

More Details: Refer to the link.

ShareThis

snow flakes

blogger widgets Blogspot Tutorial

LinkWithin

Related Posts Plugin for WordPress, Blogger...