Products

Solutions

Learn More

Partners

Community

Blog

About

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 (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

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 protected]). 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 protected]). 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 protected]). 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 protected]). 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)

 
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.
DNN Launch Webinar
REGISTER NOW
DNN Launch Webinar
REGISTER NOW
DNN Launch Webinar
REGISTER NOW