This project has moved and is read-only. For the latest updates, please go here.

Unable to complete course - InvalidOperationException

Topics: Developer Forum, User Forum
Oct 23, 2015 at 4:17 AM
Hi Richard,

We have some users having issues completing their courses and I'm wondering if you've seen any issues like this before. In SCORM 2004 courses, occasionally setting score and\or completion appears to fail (for maybe 2 - 5% of users).

We have not yet detected any similarities between the users.

SLK appears to be logging an InvalidOperationException when the submit command is passed (stack below).

For now we are setting these LAs complete programmatically, but I'd appreciate any advice on what might be the underlying cause.

We also noticed that a 'broken' attempt doesn't have any records in AttemptObjectItem, while a working attempt does.

Any ideas?


An error occurred. More information: System.InvalidOperationException: The session cannot be exited in its current state. In Execute view, only Active sessions which have been started may be exited. Sessions may not be exited in other views.
at Microsoft.LearningComponents.Storage.StoredLearningSession.Exit()
at Microsoft.LearningComponents.Frameset.HiddenHelper.ProcessPageLoad(PackageStore packageStore, GetSessionTitle getSessionTitle, TryGetViewInfo TryGetViewInfo, TryGetAttemptInfo TryGetAttemptInfo, AppendContentFrameDetails appendContentFrameDetails, RegisterError registerError, GetErrorInfo getErrorInfo, ProcessSessionEnd ProcessSessionEnd, ProcessViewRequest ProcessViewRequest, GetFramesetMsg getFramesetMsg, Boolean isPostBack)
at Microsoft.SharePointLearningKit.Frameset.Hidden.<Page_Load>b__0()
at Microsoft.SharePointLearningKit.SlkUtilities.RetryOnDeadlock(VoidDelegate del)
at Microsoft.SharePointLearningKit.Frameset.Hidden.Page_Load(Object sender, EventArgs e)

the message resource is present but the message is not found in the string/message table