Home > SLK > Utility to upgrade SLK Assignments Web Part to version 1.3.1

Utility to upgrade SLK Assignments Web Part to version 1.3.1

SharePoint Learning Kit 1.3.1 breaks backward compatibility with previous versions. Once it is installed then any pages with the Assignments web part will not be able to display them, it will show an error instead.

I’ve created a utility to swap the Assignments web part for the one in 1.3.1. You can download it from http://www.salamandersoft.co.uk/slk/upgradeSlkWebPart.zip.

It’s a simple command line application which includes the executable and source code.

From the help within the tool (UpgradeSlkWebParts.exe /?)

This utility replaces web parts which render as errors with the SLK 1.3.1 assignment list web part.
The aim is to upgrade SLK to 1.3.1 which causes the errors on the previous assignment list web part,
and this then swaps them for the web part which comes with 1.3.1.

usage: upgradeSlkWebParts baseUrl page [optional arguments]

   baseUrl: The url of the web which is the parent of the class sites e.g. http://wss/sites/school/classes
   page:    The actual page on which the web part appears
                e.g. it would be Pages/default.aspx for the url http://wss/sites/school/classes/Ma10A/Pages/default.aspx

   Optional Parameters:

   Parameters without values

       siteOnlyOff : If present sets Show site only to false, if not present it’s set to true
       queryControlOff : If present sets Show Query Control to false, if not present it’s set to true
       allSites :        Update all sites under the base Url. Otherwise use the maxNumber argument

   Parameters with values : use like maxNumber=7

       maxNumber :          The maximum number of subsites to update. Defaults to 2.
                                  Use to test on a limited number of sites first.
       querySetOverride :  The Query Set Override value to use. Defaults to blank.
       index :                  The position on the page. Defaults to 0.
       controlWidth :        The width of the control. Defaults to not setting it.

Categories: SLK Tags:
  1. Thulani
    October 12th, 2009 at 13:12 | #1

    Hello i Got Sum Issues updating my assignments list webpart, i get this error Error

    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

    I try to use the upgradeslkwebparts, But the way inwhich you show the steps to follow is very confusing to me, my site is for example http:Example , the page with the webpart is http:Example/pages/default.aspx how do i go about using, the upgradSlkwebparts, What is the baseurl and what is the page url, please email me as soon as possible thank you.

  1. No trackbacks yet.