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...Administration ...Administration ...Can't login to one of my portals as Host anymoreCan't login to one of my portals as Host anymore
Previous
 
Next
New Post
10/27/2016 12:23 PM
 

Recently I haven't been able to login as Host on one of my installation portals.

/Default.aspx?tabid=1644&error=An%20unexpected%20error%20has%20occurred

I get this unexpected error message and I get redirected on the homepage. Is there a way to solve this problem? All the other portals work fine, it's just one of them that's messed up for some reason.

Any idea how to work around this problem? I've seen a similar thread but it's 2 years old and nobody answered once the guy that had the problem said he was able to login with another account. 

Unfortunately I'm not as lucky. I tried and can't login with another account.

Any idea anyone?

I'm using DNN 07.04.02 (216) framework 4.0

Thanks

 
New Post
10/27/2016 2:16 PM
 
If you can look at the EventLog table using SQL Server Management Studio, you may be able to see some additional details that help identify the problem.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
10/28/2016 3:53 AM
 
just to add: in DNN 7.4.2, you should inspect the details of the errors in view vw_eventlog, as the table doesn't include details of exceptions anymore.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/28/2016 9:14 AM
 

I looked into the event log and got this strange duplicate primary key violation error. I had always been able to log into this portal before and I can login to all my other portals on the same installation with this same superuser. I partially solved on my production server by adding a new user and making it superuser via database but this doesn't work on my local copy because recaptcha isn't working and I can't register new users..

Is there a way to deactivate recaptcha via database without having to login to the website, since I can't do that. On my Local installation while I was playing around with the aspnetUsers table and the users table I changed something that was apparently harmless but now I can't login to ANY of my portals as host :(

I must have done something wrong. Given I can't register because recaptcha is down and I can't login as host because something must have gone very wrong when I deleted one apparently useless row in the Users table, Is there a workaround I can use in order to avoid having to restore the origina DB and go through the whole process of eliminating the portals I don't need once again?

Here is the Primary key error I got when I tried to login.

Now I can't see what the error is unless it can be done by looking directly in the database. I still have access there.

RawUrl:/Home/tabid/1644/ctl/Login/Default.aspx?returnurl=%2fHome%2ftabid%2f1644%2fDefault.aspx

Referrer:http://www.mydomain.com/Home/tabid/1644/ctl/Login/Default.aspx?returnurl=%2fHome%2ftabid%2f1644%2fDefault.aspx

UserAgent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

ExceptionHash:ztEeFTcu6GX5YT5iGkcZ1A==

Message:Violation of UNIQUE KEY constraint 'IX_Users'. Cannot insert duplicate key in object 'dbo.Users'. The duplicate key value is (email@mydomain.com). Cannot insert duplicate key row in object 'dbo.aspnet_Users' with unique index 'aspnet_Users_Index'. The duplicate key value is (a8da8e48-49ee-441d-bf3d-df2a2ce72582, email@mydomain.com). The statement has been terminated. The statement has been terminated.

StackTrace:

InnerMessage:Violation of UNIQUE KEY constraint 'IX_Users'. Cannot insert duplicate key in object 'dbo.Users'. The duplicate key value is (email@mydomain.com). Cannot insert duplicate key row in object 'dbo.aspnet_Users' with unique index 'aspnet_Users_Index'. The duplicate key value is (a8da8e48-49ee-441d-bf3d-df2a2ce72582, email@mydomain.com). The statement has been terminated. The statement has been terminated.

InnerStackTrace:

   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)

   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)

   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)

   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

   at PetaPoco.Database.Execute(String sql, Object[] args)

   at DotNetNuke.Data.PetaPoco.PetaPocoHelper.ExecuteNonQuery(String connectionString, CommandType type, Int32 timeout, String sql, Object[] args)

   at DotNetNuke.Data.SqlDataProvider.ExecuteNonQuery(String procedureName, Object[] commandParameters)

   at DotNetNuke.Data.DataProvider.ChangeUsername(Int32 userId, String newUsername)

   at DotNetNuke.Security.Membership.AspNetMembershipProvider.ChangeUsername(Int32 userId, String newUsername)

   at DotNetNuke.Modules.Admin.Authentication.Login.OnLoginClick(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)

 
New Post
4/10/2017 2:50 AM
 
I have this exact problem too.

Here's what I had:
I had a single portal site running 7.4.2. I added a new portal to it. Super User Logins worked fine on both the original site and the new one. I set up the new portal to use email address as login (which isn't really necessary as it is an info only site.)

Then I upgraded to latest DNN 9.0.2

After the upgrade, I can still login to the original portal using the SU account, but cannot login to the new portal. I get the same error as above in the vent log regarding a duplicate key.

I will be trying to adjust the username setting int he database, but not sure where it lives. Interested to know how you fixed it.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can't login to one of my portals as Host anymoreCan't login to one of my portals as Host anymore


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