Saturday, January 10, 2009

DNN5 - Method not found: 'System.Collections.Hashtable DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_ModuleSettings()'

Been very busy coding today

Here are some of the highlights of things I've unearthed during today:

First, DotNetNuke. If you encounter and error like this one on the login page for DNN5 or later:

DotNetNuke.Services.Exceptions.ModuleLoadException: Method not found: 'System.Collections.Hashtable DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_ModuleSettings()'. ---> System.MissingMethodException: Method not found: 'System.Collections.Hashtable DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_ModuleSettings()'. at DotNetNuke.Authentication.CardSpace.Config..ctor(Int32 portalId) at DotNetNuke.Authentication.CardSpace.Config.GetConfig(Int32 portalId) at DotNetNuke.Authentication.CardSpace.Settings.OnLoad(EventArgs e) --- End of inner exception stack trace ---
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/269347/scope/posts/threadpage/5/Default.aspx

Then the chances are it is because some authentication extension is using the old AuthenticationConfigBase interface.

There's no way round this - you have to get rid of the offending extension - and hope there's a new version available.

(Interestingly when you do try to use Reflector on a module like this which then can't find a matching base class, then Reflector gives you error messages about your invisibility settings - very confusing)

1 comment:

  1. I'm getting this error when trying to configure the OpenID provider after installing it by changing the type of the package to Auth_System.

    Does this means that the OpenID provider can't be used on DNN version 5?

    ReplyDelete