in

Dot Net Mafia

Group site for developer blogs dealing with (usually) Ionic, .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

Enabling Versioning on a Document Library

Last post 02-06-2008 5:26 PM by CoreyRoth. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-28-2008 1:28 PM

    Enabling Versioning on a Document Library

    This forum is used to track issues that people have run into with SharePoint and hopefully get some resolutions.

    An issue I have ran into recently is enabling versioning on a document library.  I am using a ListTemplate and I have attempted to enable versioning using the following methods.

    1. Set VersioningEnabled in the elements.xml file of the document library template.
    2. Set VersioningEnabled in the schema.xml file of the document library template.
    3. Through the API, by getting a reference to the list, and setting the EnableVersioning property to true and then calling Update() on the list.

    I can understand methods 1 and 2 not working perhaps, but when I use the API and set properties on the list (using OnFeatureActivated), I expect it to work.  It unfortunately does not.

     

  • 02-06-2008 5:26 PM In reply to

    Re: Enabling Versioning on a Document Library

    This was quite an odd issue.  I had a case where the Content Types and Site Columns did not get deployed to the Site Collection prior to deploying this list.  Once I deployed them and redeployed the library the versioning worked fine.  Oddly, enough SharePoint will let you deploy a document library based upon content types and columns that do not exist yet.

Page 1 of 1 (2 items)
2018 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems