About Me

My photo
a Dynamic and Energetic guy.....

Wednesday, June 18, 2014

Add A WebPart to SharePoint Page Programatically Throws File CheckOut exception

When we add a WebPart to a page, programatically we have to checkout the page.

Even we try to Checkout the file using C# code, it throws the exception.
We have to go to the Document library that resides the required page.
Then go to the Library settings section.

Then go to the Versioning settings Section.
We have to set NO to "Require Checkout" option.

Then Our Webpart will be deployed to the page successfully.

No comments:

My Masters