I am trying to duplicate an existing DNN portal that I have for testing purposes by creating a duplicate of the database and duplicating the .net files into a new folder.
After I copied the site and changed the webconfig to point to the new site and changed the alias in the database I am getting this error.
This webpage has a redirect loop.
The webpage at http://xxx.us/xxx/default.aspx has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here's a list of common causes for DNN redirect loops:
1) You are setting the trust level to medium and using the 1.0.61025.0 version of System.Web.Extensions. Update the trust level to full and and update ALL occurrences of System.Web.Extensions to 3.5.0.0 in the web.config (assuming .NET 3.5 framework is installed).
Original:
<trust level="Medium"... ...
...System.Web.Extensions,
Version=1.0.61025.0...
Updated:
<trust level="Full"... ...
...System.Web.Extensions,
Version=3.5.0.0...
You should also check if there is a System.Web.Extensions.dll (version 1.0.61025.0) in the /bin directory. If no compiled module is dependent on this assembly version, you can remove the file. Otherwise, use assembly redirection in the web.config runtime section:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
2) You have a trailing slash in the HTTPAlias field in the PortAlias table, remove it.
JAllen, in my experience, this is an incorrectly formatted PortalAlias record.
My suggestion is to try a few extra iterations.
Examples:
The specific value that goes into your PortalAlias table depends upon your IIS bindings. You may also need to check your hosts file to verify that localhost is available to you
C:\Windows\System32\drivers\etc\hosts
In over 20 DNN deployments, this has caused me some pain a handful of times, at least.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With