System.InvalidOperationException: A CurrentActivity that is active is required to exist before requesting this operation.

Topics: Developer Forum
Aug 2, 2011 at 2:17 PM

Hi ,

We have slk 1.5 and in most cases it works well. But sometimes 2-3 students recieved 0 score.

Today we finally catched the error in the event viewer that occured at this moment:

 

SharePoint Learning Kit Error

 

An error occurred. More information: System.InvalidOperationException: A CurrentActivity that is active is required to exist before requesting this operation.

   at Microsoft.LearningComponents.LearningSession.ThrowIfCurrentActivityIsInactive()

   at Microsoft.LearningComponents.Storage.StoredLearningSession.get_CurrentActivityDataModel()

   at Microsoft.LearningComponents.Frameset.RteDataModelConverter.Create(LearningSession session)

   at Microsoft.LearningComponents.Frameset.HiddenHelper.ProcessDataModelValues(String dataModelValues, String objectivesIdMap)

   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)

 

 

Maybe someone can advise us what can cause this error?

Thank you in advance,

Sabina