Error DropBox (when assigment non-learning file)

Topics: Developer Forum, User Forum
Oct 13, 2009 at 9:12 PM

I have problem with assigmnet non-learning file. When I click on button OK (Assigment site), view error "....folder already exists..".  On AssigmentListwebpart is this assigment, but go to error. Application log file:

"SharePoint Learning Kit Error

Microsoft.SharePoint.SPException: "..Permission not find.."
   v Microsoft.SharePoint.SPRoleDefinitionCollection.get_Item(String name)
   v Microsoft.SharePointLearningKit.DropBoxManager.ApplyInstructorReadAccessPermission(SPListItem folder, SPUser instructor)
   v Microsoft.SharePointLearningKit.DropBoxManager.<>c__DisplayClassd.<CreateAssignmentFolder>b__c()
   v Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   v Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
   v Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   v Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   v Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   v Microsoft.SharePointLearningKit.DropBoxManager.CreateAssignmentFolder(String docLibTitle, AssignmentProperties assignmentProperties, SlkMemberships slkMembers, String assignmentFolderName)
   v Microsoft.SharePointLearningKit.DropBoxManager.<>c__DisplayClass1.<CreateAssignmentFolderForCourseManagerInstructor>b__0()
   v Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   v Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
   v Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   v Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   v Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   v Microsoft.SharePointLearningKit.DropBoxManager.CreateAssignmentFolderForCourseManagerInstructor(String docLibTitle, AssignmentProperties assignmentProperties, SlkMemberships slkMembers, String assignmentFolderName)
   v Microsoft.SharePointLearningKit.ApplicationPages.Grading.OnPreRender(EventArgs e)"

 

Any idea?

Thanks

Oct 20, 2009 at 2:27 AM

This probably isn't it but just in case you missed this, have you gone into the "DropBox Document" library on the site that you are assigning the assignment to and checked in there for an existing assignment with the same name?

The folders are named the name of the assignment (document name) and date.  e.g. if you assigned a .pdf with the name "assignment1.pdf" today (20/10/09), then the folder created in this document library is called "assignment1 10202009" (american style date).  All learners that are assigned to the assignment have a folder underneath the rot assignment folder for all their submitted files.  Maybe somehow there is another assignment of the same name in there?  The appended date is supposed to get around this issue though, but if you tried to assign the same document to the same site on the same day, that could break it.

NOTE:  The document library "DropBox Document" is in the site where the assignment is assigned, not the site where the document is stored (might or might not be in the same site-depends on your layout).