DotNetNuke redirection loop fix

September 3, 2010

I’ve been dealing with a DotNetNuke redirection loop for a few days now and have figured out that one or a mixture of the following solutions may help resolve the problem.

How do you fix it?

  1. This could be a problem with your MSSQL Database. There is a table called PortalAlias. In that table lists any and all locations of where the portal is and it’s alias. To correct the issue view that tables entries and if you do not see your domain in there with the proper folder you may be able to fix this by adding it in there. Do NOT use a trailing slash “/” at the end. If you have yours in a folder make sure you enter the name of the folder such as: larmib.com/dnn
  2. If that does not work you will need to modify the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config file and add requiresPermission=”false” to the end of the SectionGroup system.web under the section compilation, and deployment. Save the file, and then try again. If you host your websites with a company you need to contact them and have them do this for you.
  3. This could be an issue with the version of system.web.extensions. If the server has version 3.5.0.0 it may be conflicting with the version you have in your web.config. The way you fix this is by making a backup of your current web.config, then open the web.config in a text editor and do a find and replace. You will be looking for “Version=1.0.61025.0” and replacing it with “Version=3.5.0.0”.

What order should I do things?

I would first try to fix the PortalAlias issue as it may be the cause and is easier in most cases to fix than trying to involve your hosting company, or play with settings you don’t need to. Secondly It could be a problem with the version of system.web.extensions you are using, on your hosting account. You can get that fixed by trying the version change. I would like to note that there were causes where the version change from 1.0.61025.0 to 3.5.0.0 did not fix the issue, which leads me to the last thing which is to add requirePermissions=”false” being added to the machine.config file. If that is done you, and you did switch your system.web.extensions version to 3.5.0.0 and it is still not working, then revert back to the 1.0.6.1025.0 version, that may do the trick as it worked for me.

What causes this problem?

There are two reasons why this problem happens.

  1. Your PortalAlias table has a trailing “/”. Example: larmib.com/dnn/ simply remove the trailing “/” so it looks like this larmib.com/dnn and that will fix it.
  2. An error loop for the AJAX extensions.
    This is the problem if you download the source, PageBase.vb:

    If objBasePortalException.Message.Contains("System.Web.Extensions") Then
     ' suppress AJAX error in Medium Trust
     Response.Redirect(strURL)
    Else
+1 this post if it helped you!

Leave a Reply