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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Unable to upgrade websiteUnable to upgrade website
Previous
 
Next
New Post
1/28/2014 2:08 PM
 

A few months ago, I tried upgrading my DNN install, but ran into errors.  I didn't have time to work through the errors at the time, so shelved the upgrade for awhile.

Over the last couple of snow days, I had time to tackle the upgrade.  I downloaded the latest version (7.2.1) and attempted the upgrade.

For some reason though, I could not log into the host account to finish the upgrade, so I restored the website from backup and tested the host account.  Apparently that account was corrupted, and I could not figure out how to fix it.  So, I created a new DNN super user login (the one I usually use is AD-based), and tried the upgrade again.

This time, I got an error about the module creator.  I was able to find a similar situation in these forums, and the solution was to remove that module.  So, I again restored from backup, logged in, removed that module, and attempted the upgrade again.

This time, the upgraded failed with this error:
ERROR occured - Error: Sequence contains more than one element at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
at lambda_method(Closure ) at System.Linq.EnumerableExecutor`1.Execute()
at System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable`1 source)
at DotNetNuke.Services.Upgrade.Upgrade.ImportDocumentLibraryCategories()
at DotNetNuke.Services.Upgrade.Upgrade.UpgradeToVersion720()
at DotNetNuke.Services.Upgrade.Upgrade.UpgradeApplication(String providerPath, Version version, Boolean writeFeedback)

I searched quite a bit, but never came across any solution for this one, so I again restored from backup, tweaked a few things, and tried again, same result.

So, I instead tried upgrading to version 7.1.2 (I've had situations in the past where skipping a version caused problems).  This upgrade appeared to work, so I tried the next version (7.2.0).  I again ran into the same error as before.  So, I once again restored from the backup and decided to leave it at that version.

However, while the website was working for DNN logins, apparently it was no longer working with AD logins.  And, since my backup scripts only with the version I was upgrading from, I am no longer able to go back to 7.1.1.

Whenever an AD user attempts to login now, this error shows up in the Event Logs:
AssemblyVersion:7.1.2
PortalID:32
PortalName:Website
UserID:-1
UserName:
ActiveTabID:1338
ActiveTabName:Login
RawURL:/Home/Login/tabid/1338/Default.aspx?portalid=32
AbsoluteURL:/Default.aspx
AbsoluteURLReferrer:http://(domain removed)/Home/Login/tabid/1338/Default.aspx?portalid=32
UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:3a1a81a4-0f52-4a5b-9fa2-c0cd1288c8dc
InnerException:The user account has been locked out.
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.Web.Security.SqlMembershipProvider.GetPassword
StackTrace:
Message:
DotNetNuke.Services.Exceptions.PageLoadException: The user account has been locked out. ---> System.Web.Security.MembershipPasswordException: The user account has been locked out.
   at System.Web.Security.SqlMembershipProvider.GetPassword(String username, String passwordAnswer)
   at WebMatrix.WebData.SimpleMembershipProvider.GetPassword(String username, String answer)
   at System.Web.Security.MembershipUser.GetPassword()
   at DotNetNuke.Authentication.ActiveDirectory.AuthenticationController.AuthenticateUser(UserInfo objUser, ADUserInfo objAuthUser, UserLoginStatus& loginStatus, String ipAddress)
   at DotNetNuke.Authentication.ActiveDirectory.AuthenticationController.ManualLogon(String userName, String strPassword, UserLoginStatus& loginStatus, String ipAddress)
   at DotNetNuke.Authentication.ActiveDirectory.Login.cmdLogin_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
   at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---

I've tried many-many fixes on this, with no success.  So now I'm stuck with a system that nobody can log into.  We have about 200 portals on this system, almost all of which are AD-only.

I need to either fix the login issue, or fix the upgrade issue and then test again once I get it upgraded.  Which is the best route?

 
New Post
1/29/2014 8:39 AM
 

your first error is odd in that there should only be one matching vocabulary i.e. the statement  var defaultTags = (from v in vocabularyController.GetVocabularies() where v.IsSystem && v.Name == "Tags" select v).SingleOrDefault(); expects one - we can change this to FirstOrDefault (please log it to support.dnnsoftware.com), but the bug is that you have 2 system vocabularies called "Tag" - I have no idea how this could have happened as when I try to add a new vocabulary called "Tags" I get a message stating "The vocabulary "Tags" exists in the list. "

 As to your 2nd issue, the fact that GetPassword is called would be the issue - since DNN 7.1.0 the new default password format is hashed passwords. As hashing is a 1 way operation any calls to GetPassword would fail - as such I imagine the AD provider only works with encrypted passwords (which can be decrypted), however it's a project I don't use very often so I don't know if this is a known error in the AD provider which has been fixed, or there is an assumption that users of the AD provider will change the web.config to use Encryption rather than Hashed.


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/29/2014 9:12 AM
 
After much complaining by the users this morning, I restored the backup to a Sunday night version (from my main backup server) to get it running again.

So, the question is, can I upgrade directly from 7.1.1 to 7.2.1? Or should I try doing the incremental upgrades again and fix those errors as I go?
 
New Post
1/29/2014 9:28 AM
 
Reported that bug at support.dnnsoftware.com per your request.
 
New Post
1/29/2014 10:33 AM
 
can you log in as host and go to admin->taxonomy and check and see if you have 2 vocabularies called "Tags" (or check the Taxonomy_Vocabularies table) - if you do, I've no idea how it got there but you could try deleting one and then try an upgrade. I would not try the upgrade until that is resolved as otherwise it will thrown an exception and skip potentially important steps,

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Unable to upgrade websiteUnable to upgrade website


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