Help me: SLK 1.4 Create an Assignment error!

Topics: Developer Forum, Project Management Forum, User Forum
Nov 10, 2009 at 2:30 AM

Help me please! I use SLK1.3 is OK and when I use SLK1.4 , install ok and Create an Assignment error (The data server is MSSQL2005enterprise with SP2, not SQLEXPRESS). the event log is here, who can tell me , where is wrong?  I have make the  "Dropbox document" permition to teacher and student group.

log name 日志名称:          Application
from 来源:            Windows SharePoint Services 3
date 日期:            2009/11/10 10:05:43
event 事件 ID:         0
task type 任务类别:          无 none
level 级别:            错误 error
key words 关键字:           经典 classic
user 用户:            暂缺 N/A
computer 计算机:           W2008
memo 说明:

SharePoint Learning Kit Error

Microsoft.SharePoint.SPException: 找不到权限级别。(in englisth means: "Can not find permission levels")
   在 Microsoft.SharePoint.SPRoleDefinitionCollection.get_Item(String name)
   在 Microsoft.SharePointLearningKit.DropBoxManager.ApplyInstructorReadAccessPermission(SPListItem folder, SPUser instructor)
   在 Microsoft.SharePointLearningKit.DropBoxManager.<>c__DisplayClassd.<CreateAssignmentFolder>b__c()
   在 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   在 Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
   在 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   在 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   在 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   在 Microsoft.SharePointLearningKit.DropBoxManager.CreateAssignmentFolder(String docLibTitle, AssignmentProperties assignmentProperties, SlkMemberships slkMembers, String assignmentFolderName)
   在 Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.SubmitAssignment(Object sender, EventArgs e)


event 事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows SharePoint Services 3" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2009-11-10T02:05:43.000Z" />
    <EventRecordID>4228</EventRecordID>
    <Channel>Application</Channel>
    <Computer>W2008</Computer>
    <Security />
  </System>
  <EventData>
    <Data>SharePoint Learning Kit Error

Microsoft.SharePoint.SPException: 找不到权限级别。(in englisth means: "Can not find permission levels")
   在 Microsoft.SharePoint.SPRoleDefinitionCollection.get_Item(String name)
   在 Microsoft.SharePointLearningKit.DropBoxManager.ApplyInstructorReadAccessPermission(SPListItem folder, SPUser instructor)
   在 Microsoft.SharePointLearningKit.DropBoxManager.&lt;&gt;c__DisplayClassd.&lt;CreateAssignmentFolder&gt;b__c()
   在 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   在 Microsoft.SharePoint.SPSecurity.&lt;&gt;c__DisplayClass4.&lt;RunWithElevatedPrivileges&gt;b__2()
   在 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   在 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   在 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   在 Microsoft.SharePointLearningKit.DropBoxManager.CreateAssignmentFolder(String docLibTitle, AssignmentProperties assignmentProperties, SlkMemberships slkMembers, String assignmentFolderName)
   在 Microsoft.SharePointLearningKit.ApplicationPages.AssignmentPropertiesPage.SubmitAssignment(Object sender, EventArgs e)</Data>
  </EventData>
</Event>

Nov 10, 2009 at 4:20 AM

contunue....

and I could not  found any registry item : "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SLKCourseManager\Settings" , WHY? My OS is windows 2008, and have turned off the UAC in control panel.

Nov 11, 2009 at 8:52 AM

continue....

I found when i upload a SCORM format file, and Create an Assignment is OK, student can use it.  And , Only when i upload a no-SCORM ZIP file such as a word document or other file, then make it as an Assignment , the page show error when i click the OK button, from now, the Assignment is ready now , because the student also can use it to review the no-SCORM file and submit files with multi upload file controler. But with teacher rolse, he can not view this no-SCORM Assignment(will show error msg).  The system event give me the message is : Can not find permission levels.

What's wrong with it ?

Coordinator
Nov 23, 2009 at 9:49 AM

I fixed the problem in the source code. The uploaded code was using the English names to find the standard roles. I'm now using SPRoleDefinitionType.GetByType which should pick up the correct role regardless of installed language.

This will be in the first official 1.4 release once I've worked through the rest of the bugs.


Richard

SLK Co-ordinator

http://blog.salamandersoft.co.uk

Nov 23, 2009 at 10:07 AM

Thank you very very much! I will try it....