Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthentication"A critical error has occurred. An unexpected error has occurred" at login"A critical error has occurred. An unexpected error has occurred" at login
Previous
 
Next
New Post
8/21/2013 8:30 PM
 

This is a bit of problem with 7.1, I reported a bug here:
https://dnntracker.atlassian.net/brow...

In the bug report (I should update it), I've stated that we can login via the windows signin page, but this is slightly wrong. For some reason it works on our dev/staging instance, but not our prod one. 

I'm currently trying to create a debug build of the provider from the source so I can remote debug it on our dev instance. Having trouble getting it to build with the 7.1 assemblies & the DotNetNuke.Membership.DataProvider dll seems to have disappeared from a previous version so I can't reference it. So will try previous versions of the 2 referenced assemblies, so I can get something to test against.

 
New Post
8/22/2013 12:27 AM
 

I've now got a debug build & can remote debug. It looks like the exception is being thrown by DNNUserController.ChangePassword(objUser, strStoredPassword, strRandomPassword) on line 564 in AuthenticationProvider.vb. I've checked and objUser.UserID definitely has a value, so it appears the problem is not in the provider itself, but somewhere in DotNetNuke.Entities.Users.UserController.ChangePassword()

For reference to get the source to build with the 7.1.x assembly you need to (in addition to the fiddling with the project file):

  1. Set the target framework to .NET 4
  2. Add a reference to System.Web.ApplicationServices
  3. Change lines 371 & 559 in AuthenticationProvider.vb to use the fully qualified namespace for the calls to Membership.GetUser(objUser.Username) so it becomes System.Web.Security.Membership.GetUser(objUser.Username)

 BTW - It doesn't seem to matter that there is not reference to DotNetNuke.Membership.DataProvider mentioned above

 
New Post
8/29/2013 7:04 PM
 

After getting a working build and modifying it so I could login. I found a setting in Host Settings -> Advanced Settings -> Membership management, that allows you to turn off password history. After turning this off I was able to go back to using the non-modified version of the ad provider assembly.

If you can't login to your site because of password history & have access to the database you can turn it off manually by finding the EnablePasswordHistory row in the dnn_HostSettings table and setting it's value to N

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthentication"A critical error has occurred. An unexpected error has occurred" at login"A critical error has occurred. An unexpected error has occurred" at login


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out