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 ...401 Unauthorized When Entering Edit Mode401 Unauthorized When Entering Edit Mode
Previous
 
Next
New Post
11/16/2016 8:14 AM
 

Hello DNN Software Forums,

I manage several DNN sites and have had this issue occur on just a handful of them, almost randomly.  The issue is when you attempt to enter edit mode, the modal login popup appears prompting for a login.  If you close out, it sometimes logouts you and sends you back to your home page (or 404), or it just leaves me on the page in edit mode.  There are no Errors generated in the DNN Event Viewer.  The only error I can spot is in the browser developer console which reports a '401' to the 'domain.com/DesktopModules/internalservices/API/controlbar/ToggleUserMode'.  It occurs with any user as well.  The interesting thing is that this only occurs on very specific pages and is never site wide.  Also, this appears to mostly only affect child portals, and if I'm not mistaken, only on DNN 8 and above.  In the past I have found that it appears to be caused by individual modules, however, the same module works on other pages.  To resolve all I had to do was simply 'save' the module in its settings.  Easy, but this does not always work and sometimes involves removing the module completely.  I've checked the module permissions and they are correct.  I've checked environment permissions and they are also correct.  This is affecting different installations across different servers, too.  We've tried all the basic troubleshooting tips, but none shed much light.

I am posting here for your thoughts on what to check, and if anyone else has come across this issue.  I suspect there is a conflict in the database for the module but I am not sure where it may be or why it would just happen.  We are very 'DNN' savvy so please do not dumb down any answers or insights.

Thank you!

 

 
New Post
11/17/2016 6:22 AM
 
Some backgrounds:
- the 401 HTTP code means that you don't have right to the resource, 
- the 'domain.com/DesktopModules/internalservices/API/controlbar/ToggleUserMode'  is a DNN Web API request,

Can you check in Chrome web console:
- is this requests starts from: http://domain.com or http://www.domain.com or https://domain.com ?
- is first part of this url is different from other requests ?
- is this request has 'RequestVerificationToken' header required in the Web API calls?

If you can debug this website in Visual Studio I recommend to set the 'break point' in the function: DotNetNuke.HttpModules.Membership.MembershipModule.AuthenticateRequest()
Below a figure that describes  request  'ToggleUserMode'
Hi Dave,

Regards,
Barry
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...401 Unauthorized When Entering Edit Mode401 Unauthorized When Entering Edit Mode


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