DNN重定向循环 [英] DNN redirect Loop

查看:85
本文介绍了DNN重定向循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过创建数据库副本并将.net文件复制到新文件夹中来复制我用于测试的现有DNN门户。

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.

复制站点并更改webconfig使其指向新站点并更改数据库中的别名后,出现此错误。

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.

该网页位于 http://xxx.us/xxx/default.aspx 处的重定向次数过多。清除此站点的cookie或允许第三方cookie可能会解决此问题。如果不是,则可能是服务器配置问题,而不是您的计算机有问题。

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.

推荐答案

以下是 DNN重定向循环的常见原因


1)您将信任级别设置为
中等,并使用System.Web.Extensions的1.0.61025.0
版本。
将信任级别更新为完全,并且
将web.config中
中所有出现的
System.Web.Extensions更新为3.5.0.0(假定.NET 3.5 $ b $

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).

原始:



<trust level="Medium"... ...
 ...System.Web.Extensions,
 Version=1.0.61025.0...




已更新:

Updated:



 <trust level="Full"... ...
 ...System.Web.Extensions,
 Version=3.5.0.0...

还应该检查是否存在System.Web.Extensions.dll(1.0版) (.61025.0)。如果没有编译的模块依赖于此程序集版本,则可以删除该文件。否则,请在web.config运行时部分中使用程序集重定向:

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)您在
HTTPAlias中使用斜杠在PortAlias
表中的字段中,将其删除。

2) You have a trailing slash in the HTTPAlias field in the PortAlias table, remove it.

这篇关于DNN重定向循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆