Error after adding SLK to second site

Topics: Developer Forum, User Forum
May 2, 2012 at 12:26 AM

I had successfully added SLK to a Sharepoint site for testing.  I have created a second site /Web Application  to actually use to provide courses.  I added SLK to the site, and configured it as before.  When I try to assign a learning resource to the site, it generates an error, and the following event appears in the event log:

Does anyone have any recommendations on resolving this error?

 

Log Name:      Application

Source:        Microsoft-SharePoint Products-SharePoint Foundation
Date:          01/05/2012 4:20:39 PM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      xxxxxxxxxxxxxxx


Description:The description for Event ID 0 from source Microsoft-SharePoint Products-SharePoint Foundation cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event: 
SharePoint Learning Kit Error
System.ArgumentException: Value was invalid.Parameter name: sddlForm   at System.Security.Principal.SecurityIdentifier..ctor(String sddlForm)   at Microsoft.SharePointLearningKit.DomainGroupUtilities.SidToOctetString(SPUser group)   at Microsoft.SharePointLearningKit.DomainGroupUtilities.EnumerateDomainGroup(SPUser group)   at Microsoft.SharePointLearningKit.SlkStore.EnumerateDomainGroupMembers(SPWeb spWeb, SPUser domainGroup, Boolean isInstructor, Boolean isLearner, List`1 groupFailuresList, StringBuilder groupFailureDetailsBuilder, Dictionary`2 instructorsByUserKey, Dictionary`2 learnersByUserKey, Dictionary`2 users, List`1 learnerKeys, List`1 learnerGroups, DateTime startTime)   at Microsoft.SharePointLearningKit.SlkStore.AddSPUserAsMember(SPWeb spWeb2, SPUser user, Boolean isInstructor, Boolean isLearner, DateTime startTime, Dictionary`2 instructorsByUserKey, Dictionary`2 learnersByUserKey, Dictionary`2 users, SlkGroup learnerGroup, List`1 learnerGroups, List`1 groupFailuresList, StringBuilder groupFailureDetailsBuilder)   at Microsoft.SharePointLearningKit.SlkStore.<>c__DisplayClassa.<GetMemberships>b__9()   at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)   at Microsoft.SharePointLearningKit.SlkStore.GetMemberships(SPWeb spWeb, IEnumerable`1 additionalInstructors, IEnumerable`1 additionalLearners, ReadOnlyCollection`1& groupFailures, String& groupFailureDetails, Boolean instructorsOnly)   at Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.get_SlkMembers()   at Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.SetAssignmentProperties()   at Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.OnPreRender(EventArgs e)
the message resource is present but the message is not found in the string/message table
Event Xml:<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">  <System>    <Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6fb7e0cd-52e7-47dd-997a-241563931fc2}" EventSourceName="Microsoft-SharePoint Products-SharePoint Foundation" />    <EventID Qualifiers="0">0</EventID>    <Version>0</Version>    <Level>2</Level>    <Task>0</Task>    <Opcode>0</Opcode>    <Keywords>0x80000000000000</Keywords>    <TimeCreated SystemTime="2012-05-01T23:20:39.000000000Z" />    <EventRecordID>22571</EventRecordID>    <Correlation />    <Execution ProcessID="0" ThreadID="0" />    <Channel>Application</Channel>    <Computer>SHELDOR.equityengineering.com</Computer>    <Security />  </System>  <EventData>    <Data>SharePoint Learning Kit Error
System.ArgumentException: Value was invalid.Parameter name: sddlForm   at System.Security.Principal.SecurityIdentifier..ctor(String sddlForm)   at Microsoft.SharePointLearningKit.DomainGroupUtilities.SidToOctetString(SPUser group)   at Microsoft.SharePointLearningKit.DomainGroupUtilities.EnumerateDomainGroup(SPUser group)   at Microsoft.SharePointLearningKit.SlkStore.EnumerateDomainGroupMembers(SPWeb spWeb, SPUser domainGroup, Boolean isInstructor, Boolean isLearner, List`1 groupFailuresList, StringBuilder groupFailureDetailsBuilder, Dictionary`2 instructorsByUserKey, Dictionary`2 learnersByUserKey, Dictionary`2 users, List`1 learnerKeys, List`1 learnerGroups, DateTime startTime)   at Microsoft.SharePointLearningKit.SlkStore.AddSPUserAsMember(SPWeb spWeb2, SPUser user, Boolean isInstructor, Boolean isLearner, DateTime startTime, Dictionary`2 instructorsByUserKey, Dictionary`2 learnersByUserKey, Dictionary`2 users, SlkGroup learnerGroup, List`1 learnerGroups, List`1 groupFailuresList, StringBuilder groupFailureDetailsBuilder)   at Microsoft.SharePointLearningKit.SlkStore.&lt;&gt;c__DisplayClassa.&lt;GetMemberships&gt;b__9()   at Microsoft.SharePoint.SPSecurity.&lt;&gt;c__DisplayClass4.&lt;RunWithElevatedPrivileges&gt;b__2()   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)   at Microsoft.SharePointLearningKit.SlkStore.GetMemberships(SPWeb spWeb, IEnumerable`1 additionalInstructors, IEnumerable`1 additionalLearners, ReadOnlyCollection`1&amp; groupFailures, String&amp; groupFailureDetails, Boolean instructorsOnly)   at Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.get_SlkMembers()   at Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.SetAssignmentProperties()   at Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.OnPreRender(EventArgs e)</Data>  </EventData></Event>

Coordinator
May 28, 2012 at 6:45 AM

SLK is having a problem enumerating the members of one of the domain groups with SLK permissions. Try removing the groups SLK permissions until you find out which one it is.


I've added code to catch this exception for version 1.7 now, so thanks for the report.

Regards,

Richard

SLK Coordinator

http://blog.salamandersoft.co.uk/

Jun 12, 2012 at 7:09 PM

Thank you !  

Aug 3, 2012 at 10:59 PM

Richard,

Do you have an eta on when 1.7 will be released. I am running into the same issue, but when i remove the groups and leave any single user in it still does the same thing. I can assign anything.

 

Thank you