Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLK 1.8 Permission Error - Help Requested #5

Open
pwburton opened this issue Aug 3, 2018 · 2 comments
Open

SLK 1.8 Permission Error - Help Requested #5

pwburton opened this issue Aug 3, 2018 · 2 comments

Comments

@pwburton
Copy link

pwburton commented Aug 3, 2018

Hi Richard,

I hope life is treating you well.
I have the SLK working on multiple sites on the same server. We have an API that we use to create classes using a workflow that calls the functions within the SLK.
All of our existing sites work the same. They are all working correctly, except this new one.
All sites are on Server 2012R2 / SQL Server 2016
Each site has its own SLK database.
We are getting the below error message on this one new site when we are trying to create an assignment.
We have verified that the permissions and settings are identical at the following places on the working and non-work sites.
IIS Pool account
Web.config file for the 2 sites (working and Non-working)
Database
SLKSettings files are identical
Site Collection
Site Features
Site
Lists involved

Any ideas as to what I might be overlooking?

error in ULS log

Microsoft.SharePointLearningKit.SafeToDisplayException: The assignment (ID 4) does not exist or you may not have permission to access it.
at Microsoft.SharePointLearningKit.SlkStore.LoadAssignmentProperties(AssignmentItemIdentifier assignmentId, SlkRole slkRole)
at SVRSLab_Utility.AssignmentObject.GetAssignments()
at Virto.Sharepoint.Activities.Extensions.Auto.ExecuteCustomCode_D028FCA9.ExtensionPoint.CustomCode(ExecuteCustomCodeContext Context)
at Virto.Sharepoint.Activities.ExcuteCustomCode.a()
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 Virto.Sharepoint.Activities.ExcuteCustomCode.Execute(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run()

You help and insight would be GREATLY appreciated!

Regards,
Perry

@rpwillis
Copy link
Owner

rpwillis commented Aug 4, 2018

I've not looked at SLK for a couple of years. From memory you get that when the user isn't an instructor or learner on the assignment that they are trying to access. The SQL generated checks that when returning the resultset, and if they are not associated with the assignment, then nothing is returned. That's assuming that the assignment (ID = 4) does exist in the DB.

@pwburton
Copy link
Author

pwburton commented Aug 4, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants