Error when using SharePoint Training Kit and SLK

Topics: Developer Forum, User Forum
Apr 15, 2009 at 3:16 AM
Edited Apr 15, 2009 at 3:22 AM
STK and SLK was installed on the same SharePoint server and deployed at 2 different portal/site respectively. However when either one loads properly, the other will have error loading.

That is,

(1) When I first load the STK portal, then subsequently portal containing the SLK Assignment webparts, the SLK Assignment webparts contain the following error: An error occurred. More information may be available in the server event log.

When the STK Portal is closed, the SLK Portal will not have any error.

(2) When I first load portal containing the SLK Assignment webparts and then subsequently the STK portal, the STK portal cannot display the list of training topics but instead gave an error:
Error: Please contact your SharePoint administrator. The error information has been logged to Windows event log on the SharePoint server.

When the SLK Portal is closed, the STK Portal will not have any error.

(3) Server Events log records as follows:

SharePoint Learning Kit error

System.InvalidCastException: Unable to cast object of type
'Microsoft.SharePointTrainingKit.AnonymousSlkStore' to type
'Microsoft.SharePointLearningKitAnonymousSlkStore'.
at Microsoft.SharePointLearningKitAnonymousSlkStore.GetStore(SPWeb spWeb)
at
Microsoft.SharePoint.LearningKit.WebParts.AssignmentListWebPart.get_SlkStore()
at
Microsoft.SharePoint.LearningKit.WebParts.AssignmentListWebPart.ValidateAlwpProperties()
at
Microsoft.SharePoint.LearningKit.WebParts.AssignmentListWebPart.RenderAssignmentList(HtmlTextWriter htmlTextWriter)
at
Microsoft.SharePoint.LearningKit.WebParts.AssignmentListWebPart.RenderContents(HtmlTextWriter writer)

Any idea what's happening?



Thanks!