SharePoint SP2 activates 180 day trial countdownMay 22, 2009 9:21
“During the installation of SP2, a product expiration date is improperly activated. This means SharePoint will expire as though it was a trial installation 180 days after SP2 is deployed. The activation of the expiration date will not affect the normal function of SharePoint up until the expiration date passes. Furthermore, product expiration 180 days after SP2 installation will not affect customer’s data, configuration or application code but will render SharePoint inaccessible for end-users.” The team is working as hard as possible to release a hotfix to address the issue. The Work around is also known: Re-enter the Product ID numbers on the Convert License Type page in Central Administration. More information at the Microsoft SharePoint team site. Tags: 180 days, bug, countdown, Microsoft, service pack, SharePoint.Enable item scheduling by codeMay 18, 2009 21:29
It required me to dig deeper and .Net reflector turned out to be the right way to go. Microsoft made a lot of the required functions internal, which means that we cannot access the functions from our own code. By analyzing the steps I was able to add item scheduling on the pages library with the code below. Step 1: Enable Moderation and Minor versions
SPWeb web = new SPSite(”http://web”).OpenWeb();
SPList list = web.Lists["Pages"]; //Enable moderation and minor versions Step 2: Register Scheduling Events
//get type information
Type scheduledItemType = typeof(Microsoft.SharePoint.Publishing.Internal.ScheduledItemEventReceiver); string assemblyName = scheduledItemType.Assembly.FullName.ToString(); string className = scheduledItemType.FullName; //Get the eventreceivers //Register the updating event //Register the added event Step 3: Unhide the startdate and expirydate fields
//Get the field guids of the startdate and expirydate
Guid startDateGuid = Microsoft.SharePoint.Publishing.FieldId.StartDate; Guid expiryDateGuid = Microsoft.SharePoint.Publishing.FieldId.ExpiryDate; //update the visibility of the startdate //update the visibility of the expirydate And that’s it. With these coding steps we enabled item scheduling at the Page library. Tags: events, item, Microsoft, reflector, Schedule. |
||