Observers have lost access problem

Topics: Developer Forum, User Forum
Mar 23, 2012 at 3:54 PM

Hi

We have been using SLK on SPS2007 for a few years now, our current version is 1.4. It has been working correctly but recently we recieved a report that people with observer roles are no longer able to access the completed assignments of students. When an observer (or a learner) clicks the submitted files links in the returned section of the assignments web part the submittedfiles.aspx page pops up with the message "You cannot perform this operation because you are not an instructor on this site (site name)." We have not done any recent changes or updates to the Sharepoint server or SLK so i'm stumped over the cause.

I attempted to upgrade to version 1.5.2 but this did not solve the problem. I then tested upgrading from 1.5.2 to 1.6 the problem was no longer effecting new assignments but the old assignments were inaccessable throwing the following error:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.SharePointLearningKit.SlkUser..ctor(UserItemIdentifier userId, SPUser spUser)
   at Microsoft.SharePointLearningKit.SlkStore.LoadUser(SPWeb web, DataRow dataRow, String idColumn, String nameColumn, String keyColumn, Guid learnerAssignmentId)
   at Microsoft.SharePointLearningKit.SlkStore.LoadUser(SPWeb web, DataRow dataRow, String idColumn, String nameColumn, String keyColumn)
   at Microsoft.SharePointLearningKit.SlkStore.AddSlkUsers(SPWeb web, IEnumerator`1 resultEnumerator, SlkUserCollection users, String idColumn, String nameColumn, String keyColumn, String assignmentIdColumn, String errorNumberIfMissing)
   at Microsoft.SharePointLearningKit.SlkStore.PopulateAssignmentProperties(IEnumerator`1 resultEnumerator, AssignmentItemIdentifier assignmentId, SlkRole slkRole)
   at Microsoft.SharePointLearningKit.SlkStore.GetGradingProperties(AssignmentItemIdentifier assignmentId)
   at Microsoft.SharePointLearningKit.ApplicationPages.Grading.get_AssignmentProperties()
   at Microsoft.SharePointLearningKit.ApplicationPages.Grading.LoadGradingList()
   at Microsoft.SharePointLearningKit.ApplicationPages.Grading.OnPreRender(EventArgs e)

Can anyone suggest a way to fix this issue without losing access to the old assignments?

Thanks

Coordinator
Apr 4, 2012 at 7:39 PM

Try starting to create a new assignment on the same site, until you get to the Assignment Properties page. Then try viewing the original assignment again.

Richard

SLK Coordinator

http://blog.salamandersoft.co.uk

May 2, 2012 at 5:02 AM

Check the Quiz Manager and Quiz Reader Group permissions in your site if SLK Instructor, SLK Learner or SLK Observer permissions are properly mapped to the groups.