1
Vote

Critical Error has occurred. An unexpected error has occurred

description

I've configured the module as per the documentation, ensuring that the user profile properties for SPUserName and SPPassword are set correctly (I've re-done it twice). However after the module admin settings are set and I attempt to login I get the error: Critical Error has occurred. An unexpected error has occurred. All other module content on the page disappears - the error is page wide. Our site uses integrated AD authentication.
 
The event log shows the following:
 
UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 61a933ce-512f-44c6-acdd-24fbd765e72e
InnerException: The given key was not present in the dictionary.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.ThrowHelper.ThrowKeyNotFoundException
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The given key was not present in the dictionary. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at ITM.Modules.SharePointFileExplorer.SPContentProvider.GetChildDirectories(String path) at ITM.Modules.SharePointFileExplorer.SPContentProvider.ResolveRootDirectoryAsTree(String path) at Telerik.Web.UI.RadFileExplorer.BindExplorer() at Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

file attachments

comments

jiehou wrote Apr 16, 2012 at 3:19 PM

Sorry for answering your question so late.

In the source code, when UserName and Password for SharePoint are temporarily cached, I use a dictionary structure as follows: dictionary<DNNUsername, SharePointUserName>, dictionary<DNNUsername, SharePointPassword>. Here DNNUsername is the key.

From my point of view, maybe there is something wrong with your DNN Username (It is a necessary option that you need to fill at the time you registered). Can you check this again?

I also want to know, after this module is configured, do you see a login interface, in which you can input your SharePoint UserName and Password.

Moreover, if you want, you also can send me a screenshot about errors. That would be very nice!
Thanks!

wrote Feb 13, 2013 at 9:17 PM