Archive
Monthly
Go
|
|
DNN Blog
Jan
3
Posted by:
Mike Horton
1/3/2009
I realize this is about a week late but with the holiday season I didn't get a chance until today to get to the root of the problem.
A number of people ran into a problem when they did a fresh install or an upgrade and installed either the Active Directory provider, the Cardspace provider, or both. The providers installed fine but when the user went to login they got an error (Method not found: 'System.Collections.Hashtable DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_ModuleSettings()'.).
One of the changes for DNN 5 was that the settings for the providers was moved from the ModuleSettings table to the PortalSettings table. The Cardspace provider has not been updated to refer to the PortalSettings table so that's why it's causing the error. The AD provider was updated but I discovered a bug shortly before the release of DNN 5 that caused an error when settings were applied to the provider. This same bug evidently also affected the core Login control. A new version was submitted to the DNN Release Tracker but it didn't get passed through in time to make the final release.
So, how do you get around this error? It's actually quite easy. If you open the Authentication table in the database and remove both the lines that reference Cardspace and ActiveDirectory you'll be able to login without a problem.
I did test installing DNN 5 by replacing the broken version in the in the DNN install package with the AD provider currently in the Release Tracker and did not run into any errors when clicking Login.
If you have upgraded a production site to DNN 5 and Active Directory is a requirement then you can get the version that's currently in the tracker from my personal site (http://dnn.gmss.org).
We're currently working on getting the Cardspace provider updated.
My apologies for any problems the two providers have caused any of you.
21 comment(s) so far...
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Thanks Mike, for your quick reaction. We will do our best to get the updated providers passing the release tracker quickly.
By Sebastian Leupold on
1/3/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Hello,
I just installed a new host dnn 5.0 ,but i dont have the option to set the authentication settings
Can someone help me
By Ronald bok on
1/6/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Settings are now applied under Admin->Extensions then clicking on the pencil beside the provider.
By Mike Horton on
1/6/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Well I did the minor fix you suggested, but it won't let me in to edit the provider. Any recommendations?
By Ddraig on
1/6/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Any solution for this problem. I use DNN authentication (W2k3, SQL 2005,). In this table i have only one entry with the field values: AuthenticationID, PackageID, IsEnabled,SettingsControlSrc, LoginControlSrc: 1, -1, DNN, True, DesktopModules/AuthenticationServices/DNN//Settings.ascx, DesktopModules/AuthenticationServices/DNN//Login.ascx
The Error is: A critical error has occurred. Method not found: 'System.Collections.Hashtable DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_ModuleSettings()'. Thanks
By epsmed on
1/7/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Sorry it is now working i was looking in the wrong table. Thank you
By epsmed on
1/7/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Well, I just upgraded and I am getting the same error. However I looked in the Authentication table but do not have the lines for ActiveDirectory or CardSpace. I only have DNN, LiveID and OpenID. :( Might it be one of those?
By John Kisha on
1/12/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
this was the error i encountered: Method not found: 'System.Collections.Hashtable DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_ModuleSettings()'. and according to your guidance i have opened authentication table but i am confused in removing the records. There are 3 authentication types DNN, OpenID, LiveID which two should i remove !
By mrpaulian on
1/13/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
I'm having a similar problem. I've upgraded to DNN5 and now some users can log in and others not. The error they get is:
A critical error has occurred. Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
Some get the error in ie7 and some in safari. Any Ideas?
Thanks for the help
By johan on
1/13/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
John and mrpaulian, you shouldn't be having the problem with LiveID or OpenID but if you're not using them you're safe in removing those lines. Ideally I'd do it one at a time and then see if you can get into the site. YOU MUST LEAVE THE DNN LINE IN THE DATABASE.
Johan, you're problem isn't the same, it sounds like something completely different. Please post in the forums for help.
By Mike Horton on
1/13/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
I've noticed that the DNN package id now is 123 and it use to be -1 in the Authentication table.
AuthenticationID PackageID AuthenticationType IsEnabled SettingsControlSrc LoginControlSrc LogoffControlSrc 1 123 DNN True DesktopModules/AuthenticationServices/DNN//Settings.ascx DesktopModules/AuthenticationServices/DNN//Login.ascx 2 1 LiveID True DesktopModules/AuthenticationServices/LiveID/Settings.ascx DesktopModules/AuthenticationServices/LiveID/Login.ascx DesktopModules/AuthenticationServices/LiveID/Logoff.ascx 3 2 OpenID True DesktopModules/AuthenticationServices/OpenID/Settings.ascx DesktopModules/AuthenticationServices/OpenID/Login.ascx
By johan on
1/13/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
I've noticed that the DNN package id now is 123 and it use to be -1 in the Authentication table.
AuthenticationID PackageID AuthenticationType IsEnabled SettingsControlSrc LoginControlSrc LogoffControlSrc 1 123 DNN True DesktopModules/AuthenticationServices/DNN//Settings.ascx DesktopModules/AuthenticationServices/DNN//Login.ascx 2 1 LiveID True DesktopModules/AuthenticationServices/LiveID/Settings.ascx DesktopModules/AuthenticationServices/LiveID/Login.ascx DesktopModules/AuthenticationServices/LiveID/Logoff.ascx 3 2 OpenID True DesktopModules/AuthenticationServices/OpenID/Settings.ascx DesktopModules/AuthenticationServices/OpenID/Login.ascx
By johan on
1/13/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
How to install AD Provider 05.00.01 Install Version on my DNN project to fix a bug?
Thankns...
By pamediakopes on
1/19/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
RE pamediakopes: The provider is installed like any module under DNN 5. Install it under Host->Extensions.
By Mike Horton on
1/19/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Hi All,
I am growing tired of having to fix all sorts of issues with each new release of DNN. The core library is not supposed to be changed like this - imagine what the .NET Framework would be like if MS broken our code with each new release! In future please just add methods and properties - never remove anything public - it'll probably cause somebody some grief sooner or later...
Anyway for those of use with access to DNN5.0 source code (that should be just about everybody in my experience) if you paste the following code into AuthenticationConfigBase.vb (main library\Services\Authentication) to get cardspace working again...
_ Public ReadOnly Property ModuleSettings() As Hashtable Get Return PortalSettings.GetSiteSettings(PortalID) End Get End Property
Have fun out there and remember - it not personal - it's just code! Ade
By Adrian Lewis on
2/3/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Hi All,
I am growing tired of having to fix all sorts of issues with each new release of DNN. The core library is not supposed to be changed like this - imagine what the .NET Framework would be like if MS broken our code with each new release! In future please just add methods and properties - never remove anything public - it'll probably cause somebody some grief sooner or later...
Anyway for those of use with access to DNN5.0 source code (that should be just about everybody in my experience) if you paste the following code into AuthenticationConfigBase.vb (main library\Services\Authentication) to get cardspace working again...
_ Public ReadOnly Property ModuleSettings() As Hashtable Get Return PortalSettings.GetSiteSettings(PortalID) End Get End Property
Have fun out there and remember - it not personal - it's just code! Ade
By Adrian Lewis on
2/3/2009
|
error loading module on 4.9.01/IIS7
Seems like a new issue:
any ideas? help is greatly appreciated!
Resource Upload Logs StartJob Starting Installation StartJob Reading files Info Loading ActiveDirectory_install.dnn Info File ActiveDirectory_install.dnn read successfully Info Loading Install.css Info File Install.css read successfully Info Loading license.txt Info File license.txt read successfully Info Loading Login.ascx Info File Login.ascx read successfully Info Loading logo.gif Info File logo.gif read successfully Info Loading Settings.ascx Info File Settings.ascx read successfully Info Loading trusterror.htm Info File trusterror.htm read successfully Info Loading WindowsSignin.aspx Info File WindowsSignin.aspx read successfully Info Loading App_LocalResources/Login.ascx.resx Info File App_LocalResources\Login.ascx.resx read successfully Info Loading App_LocalResources/Settings.ascx.resx Info File App_LocalResources\Settings.ascx.resx read successfully Info Loading bin/Providers/DotNetNuke.Authentication.ActiveDirectory.dll Info File bin/Providers\DotNetNuke.Authentication.ActiveDirectory.dll read successfully EndJob Reading files done. Failure ExceptionSystem.Exception: Dnn load failed, aborting at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnLoaderFactory.GetDnnAdapter() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()
By michael1047 on
2/4/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
RE: michael1047
Considering the blog was about DNN 5 and the authentication providers and your problem is with DNN 4.9.1 could you please post in the Authentication forum for help.
By Mike Horton on
2/4/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
A critical error has occurred. Parameter count does not match Parameter Value count.
This is the message I get when I try to login. I have checked the table authentication and I only have DNN line there afther removing ActiveDirectory but I am not able to login. What should I do?
By ptomter on
4/15/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
Re: ptomter. Please post you problem in the forums as this looks like it's unrelated to the blog posting.
By Mike Horton on
4/15/2009
|
Re: DNN 5 and get_ModuleSettings() When Login is Clicked
The only way I got this to work was that I removed all configuration and files regarding to Activedirecotry provider and installed a new clean version. Then I could login again
By ptomter on
4/16/2009
|
|