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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Redirect Loop After Multiple ReinstallsRedirect Loop After Multiple Reinstalls
Previous
 
Next
New Post
2/13/2009 12:31 AM
 

I have been working to resolve this redirect loop on a site I've been attempting to port for months with the support of Evotiva, though have not discovered the source of the problem. I have researched this, reviewed the code, submitted posts on this forum and made efforts to follow each suggestion I have found with out any resolution. I am at the stage where I'm considering hiring someone with advanced knowledge of installation issues since I have not gotten any replies from such in this forum.

Below I'll summarize what I've done to date and what references I've used with one last apeal to any who may have insights to how to resolve this problem in this community. Please consider this thread summarizing my efforts to address the rediredt loop and offer advice if you have clear recommendations of what might resolve this.
Thanks,
King

I'm attempting to port a DNN site from one ISP to another and purchased Evotiva's BackupScript module to facilitate the move. I had a fresh install on the destination host that was working and removed it to then restored a backup of the current live site (database & site files) that is hosted on another ISP's server. Both setups had DNN 4.09.00 running on them.

Once I ran the restore on the destination server, the site began a redirect loop when landing on the site page (the page keeps trying to redirect until Firefox tells you it has stopped trying). I've found a few resources and tried several things short of the ISP restarting IIS with no success in overcoming this problem. Here are the references I've found:

http://www.bestwebsites.co.nz/dotnetnuke/solving-the-dotnetnuke-redirect-loop/
http://weblogs.asp.net/christoc/archive/2008/06/19/dotnetnuke-homepage-won-t-load-keeps-redirecting.aspx
http://www.codeproject.com/KB/aspnet/fix_dnn_redirect_loop.aspx
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/271043/scope/posts/Default.aspx
http://www.programmersanonymous.net/content/NETTutorials/tabid/55/EntryID/1/Default.aspx
http://blogs.snapsis.com/PermaLink,guid,87c379cc-c700-4eb8-a48d-e778aeef65fa.aspx

Here are some things I've tried:

  •     I queried and updated the PortalAlias table to have the URL for the new host (no trailing slash), then redirect loop started
  •     I cleared my cache and closed/opened browser to eliminate any possible issues with the browser
  •     Since I couldn't restart IIS, I tried to force an “application pool” restart by editing/saving the web.config then uploading & then renaming it to cause an application error then changing the name back but this did not resolve the issue.
  •     I tried to enable the 3.5 framework to fix this but the host provider option is just to enable 1.1 or 2.0/3.0/3.5 and seems to suggest it is installed.
  •     I inserted a HostSetting record to disable AJAX: INSERT INTO HostSettings (SettingName, SettingValue, SettingIsSecure) VALUES ('EnableAJAX', 'N', 0);
  •     I updated all the references in the web.config and replace every Version=1.0.61025.0 with Version=3.5.0.0, but could not restart IIS
  •     I tried changing the Trust setting to FULL rather than the designed MEDIUM in the web.config (even though the ISP may have different permissions)
  •     I tried uncommenting the usePortNumber="true" in the web.config


I checked with the current ISP and destination ISP to confirm what trust level that they allow the sites on their shared servers. They both use MEDIUM trust and neither suggested they had modified the permisions from the default medium trust settings.

The DNN site that was setup initially on the destination site was working with the AJAX controls. We initially suspected it is related to AJAX but disabling it with the HostSettings table and changing web.config version references did not help. I studied the various redirect mechanisms in the DNN code to make sure I understand them but I'm missing something.

I've resorted to deleting the database and creating an "empty" database several times to "start fresh". I also deleted all the site contents and re-uploaded all the DNN site files just to have a clean starting point. I have successfully restored of the site database and site files using the Evotiva backup module, but the redirect loop has returned.

The last Q/A in this post below says to add the Portal Alias before loading the page for the first time to prevent a redirect loop due to caching. After several reinstallation's of the entire site and updating the PortalAlias table prior to loading a page still results in the redirect :
 
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/105609/scope/posts/Default.aspx

I've edited the web.config to trigger a recompile, but we are not able to actually cause an IIS restart (unless I were to cause five severe errors that would cause IIS to restart) since the ISP would not restart IIS.

 
New Post
5/1/2009 2:34 AM
 

I am having the same issue with a clean install on a fresh empty database. I am using DNN 4.09.03 Windows Vista, IIS 7, SQL Server 2008 Express.

I have done this hundreds of times now, and never had this issue before, I have previously used DNN 4.09.01/2 DNN 5, SQL Express 2005 SP3 all using IIS 7 and Vista and had no problems. I already have a development environment setup on another Vista box using the latest 4.09.03 source, all without any problems.

If you do find the cause and a solution, I'd love to know.

MEL

 
New Post
5/1/2009 10:07 AM
 

Hi!

I got the exact same error on my fresh vista installation.

Here is what i did in order to get it to work:
While debugging if found that the redirect comes from file "PageBase.vb" (Line 530). The comment above the line says "suppress AJAX error in Medium Trust", but it actual prevents the error page from showing redirecting you to the page you came from.

Set a break point there and inspect the "objBasePortalException.Message" for the error you got.
Mine was:

System.Security.SecurityException: Request for ConfigurationPermission failed while attempting to access configuration section 'system.web/deployment'. To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared. ---> System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
The action that failed was:
Demand

So i edited the file "C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config" and added the value requirePermission="false" to the section "compilation" and "deployment".

Thats it - everything's OK  for me now.
Hope that helpes you too!

Cheers
Guenther

 
New Post
5/1/2009 11:08 AM
 

Hi again,

sorry, in my former post it actually was file "C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config instead of "C:\...\web.config"!
I doubt your errors will be the exact same, but at least you can now see what error you are getting instead of being redirected.

Cheers
Guenther

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Redirect Loop After Multiple ReinstallsRedirect Loop After Multiple Reinstalls


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