title: DNN redirect Loop - only on admin screens
body: <p>I do not undrstand this problem.</p>
  
  <p>The other issues mentioning this redirect problem is related to portal aliases and full/med trust levels, etc.</p>
  
  <p>I have a .net 4 Classic pool pointing to the recently upgraded DNN install.</p>
  
  <p>Previous version was 5.xxxx, and now I have upgraded to 7.0.5</p>
  
  <p>All the current cms pages work.
  When I go to the admin section, and in there choose page management, or host setting in the host section, then I get this problem.</p>
  
  <p>I know dnn is slowly going down the MVC path, although I still see .apx extention floating around, meaning they have not fully cashed into the seo thing, but they are 80% there I guess.</p>
  
  <p>I do not understand where the problem is.</p>
  
  <p>It is almost like half of the site is still on the tabid=x idea, but some of the admin screens is on the more friendly url concept of "/host/HostSettings//tabid/16/portalid/0/Default.aspx" kind of firendly url / MVC conept.</p>
  
  <p>Is there an entry that I can edit to either have everything in friendly urls, or every thing using the tabid concept and then move forward from there?</p>
  
  <p>Or does the redirect problem have nothing to do with friendly urls?</p>
  
  <p>I am a bit lost here, even after developing in DNN for many years...</p>
  
  <p>Thanks in advance!</p>
  
  <p>As per Chris's advice I went through all the tabs in the table and made sure nothing is set to isSecure=True.</p>
  
  <p>Still get: Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
  IS there a way to turn redirect off in the tables?</p>
  
  <p>I have gone through the entire hostSettings and PosrtalSettings tables and compared it with another working system, but could not find anything obvious...</p>
  
  <p><strong>EDITED</strong></p>
  
  <p>Now with a few things turned off and debug mode set to true, I get the following:</p>
  
  <pre><code>Server Error in '/cms' Application.
  </code></pre>
  
  <p>Object reference not set to an instance of an object.</p>
  
  <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
  
  <p>Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.</p>
  
  <p>Source Error: </p>
  
  <p>[No relevant source lines]</p>
  
  <p>Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\cms\3fbf2a3e\66b53196\App_Web_xepmxekk.1.cs    Line: 0 </p>
  
  <p>Stack Trace: </p>
  
  <p>[NullReferenceException: Object reference not set to an instance of an object.]
     DotNetNuke.UI.Containers.ActionBase.get_ModuleContext() +7
     DotNetNuke.UI.Containers.ActionBase.get_ActionRoot() +30
     DotNetNuke.UI.Containers.ActionBase.OnLoad(EventArgs e) +35</p>
  
  <p>[ModuleLoadException: An error has occurred.]
     DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +397</p>
  
  <p>[PageLoadException: An error has occurred.]
     DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +417
     DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc) +96
     DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +548
     DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc, Boolean DisplayErrorMessage) +188
     DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc) +40
     DotNetNuke.UI.Containers.ActionBase.OnLoad(EventArgs e) +71
     DotNetNuke.UI.WebControls.SolPartActions.OnLoad(EventArgs e) +13
     System.Web.UI.Control.LoadRecursive() +54
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Control.LoadRecursive() +145
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772</p>
  
  <p>[PageLoadException: An error has occurred.]
     DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +417
     DotNetNuke.Framework.PageBase.OnError(EventArgs e) +629
     System.Web.UI.Page.HandleError(Exception e) +79
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6695
     System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
     System.Web.UI.Page.ProcessRequest() +72
     System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
     System.Web.UI.Page.ProcessRequest(HttpContext context) +58
     ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\cms\3fbf2a3e\66b53196\App_Web_xepmxekk.1.cs:0
     System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
     System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +69</p>
  
  <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929</p>