Products

Solutions

Resources

Partners

Community

About

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 Evotiva Restore Attempt Redirect Loop After Evotiva Restore Attempt
Previous
 
Next
New Post
12/12/2008 1:16 AM
 

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, then restored a backup of the current live site (database & site files) that is currently 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

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
  • I tried uncommenting the usePortNumber="true" in the web.config 

Any guidance to overccome this would be appreciated. My next step is to delete the site and try a clean install from the backed up files but I'm concerned that this will not resolve the redirect loop.
Thanks,
King

 

 
New Post
12/12/2008 6:45 PM
 

Hi King,

>I tried changing the Trust setting to FULL rather than the designed MEDIUM in the web.config

Remember you cannot "escalate" this. If the ISP setup medium trust, will still be medium even if you change the web.config to "full trust".

I still think the issue is related with AJAX.... and medium trust on the ISP.

I guess the original site was in 'real' full trust.

May be some stuff in DNN itself and web.config is expecting full trust and make the AJAX check fail?

But you already tried without AJAX enabled. So, may be you must disable OpenID and stuff like that?

First of all verify in the ISP if the site is not in full trust (I think is not..)

HTH!,

Horacio.-

 

 
New Post
12/20/2008 1:25 PM
 

Thanks for your help (again) Horacio.

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.

Note that the DNN site that was setup initially on the destination site was working with the AJAX controls. You are suspecting it is related to AJAX though I'm trying to make sure I understand the mechanism that does the redirect and why the alias does not resolve. Since the URL in the Alias table does resolve to the DNN setup, I wonder if the landing page is not enabled or something like that that results in the repeated redirect. I think I'll read though this link you had provided me before:

http://blogs.snapsis.com/PermaLink,guid,87c379cc-c700-4eb8-a48d-e778aeef65fa.aspx

What are you suggesting when you say to "disable OpenID"?

 

 
New Post
12/28/2008 5:21 PM
 

Horacio,
I resorted to deleting the database and creating an "empty" database. Then I deleted all the site contents and re-uploaded all the DNN site files just to have a clean starting point. Currently, I am trying Case II from the Evotiva restoration options but am seeing an error on the BackupScriptRestore.aspx page inidicting it can't find a stored procedure in the "empty" database: 

The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.

If this page assumes there are procedures in the "empty" database, I would think I had to install the DNN database first yet that is not what seems to be implied by the steps noted on the Evotiva site. I believe I have followed the proscribed steps (Bin & backup directories, uploade the backed up DB and site files, etc.) and even re-read the steps but don't know (yet) what I missing. Let me know if it is obvious to you what the issue is, but I'll just keep reviewing your site to see if I find something that may guide me.
Thanks,
King

 
New Post
12/29/2008 3:25 PM
 

Hi King,

The problem is that lot of 'stuff' in web.config and global.asax files triggers 'things' all the time.

So, when restoring recreating the database objects, could happen that e.g. a stored proc required by one of these things already running was not yet created. that's why 'Case II' prerequisite is the 'simple' web.config and no global.asax file.

 

In summary, replace the web.config  with the minimal version and rename the global.asax to something else.

Anyway, the restore when completed will end with a clone/copy of the original site and thus even restoring from an already running DNN once restored  will be like the original site and you'll have the same problems (related with the redirect due to the new environment limitations that the original environment doesn't have).

You can compare the web.config files and remove from the one restored things that does not work in medium trust

You can also see differences in the table hostsettings (there may be things disabled due to medium trust restrictions)

Thanks,

Horacio.-

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Redirect Loop After Evotiva Restore Attempt Redirect Loop After Evotiva Restore Attempt


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