当前位置:编程学习 > C#/ASP.NET >>

求助,网站搬家后,登陆失效ReturnUrl不跳转

原本服务器是正常的,现在搬家,到新的服务器。用户登录不了。
点击登录http://www.hszw.cc/Account/Login.aspx?ReturnUrl=%2faccount%2fdefault.aspx 无法跳转。
请教高人是为什么。
可以付费解决 --------------------编程问答-------------------- 个人觉得可能是配置问题,但是没有遇到过这种问题。肯定高人指教 --------------------编程问答-------------------- 个人也认为是配置问题。。

呵呵。环境可以配跟原来服务器一样吗? --------------------编程问答-------------------- 应该是一样的了。~我不知道ReturnUrl不跳转。,跟什么环境有关。还请高人告知下。 --------------------编程问答-------------------- 求助啊。没人知道吗? --------------------编程问答-------------------- 你跳转的语句是什么? --------------------编程问答-------------------- 代码是没问题的。但是换个服务器就不行了。
难道LOGIN控件跟环境有关系吗? --------------------编程问答-------------------- 如果代码没问题,再仔细检查一下配置文件吧,或者把配置文件贴一下看看 --------------------编程问答--------------------
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
    <sectionGroup name="enyim.com">
      <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" />
    </sectionGroup>
    <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
    <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
    <sectionGroup name="LongYu.Common">
      <section name="LongYu.Common.ConfigManager" type="LongYu.Common.ConfigManager.ConfigMangerSection,LongYu.Common.ConfigManager" allowDefinition="MachineToApplication" restartOnExternalChanges="true"/>
    </sectionGroup>
  </configSections>
  <LongYu.Common>
    <LongYu.Common.ConfigManager directoryPath="\config"/>
  </LongYu.Common>
  <enyim.com>
    <memcached>
      <!-- keyTransformer="" -->
      <servers>
        <add address="127.0.0.1" port="11211" />
      </servers>
      <socketPool minPoolSize="10" maxPoolSize="200" connectionTimeout="00:10:00" deadTimeout="00:02:00" />
    </memcached>
  </enyim.com>
  <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true" throwExceptions="false">
    <targets async="true">
      <target name="file" xsi:type="File" fileName="c:\log.txt" layout="${date:format=HH\:mm\:ss}|${level}|${stacktrace}|${message}" />
      <target name="database" xsi:type="Database" keepConnection="false">
        <dbprovider>mssql</dbprovider>
        <!-- database connection parameters -->
        <!-- alternatively you could provide a single 'connectionstring' parameter -->
        <connectionstring>server=127.0.0.1;user id=sa;password=#;database=#;</connectionstring>
        <commandText>
          insert into Book_Log(LogTime,Loglevel,LogStack,Logger,Message) values(@time_stamp, @level,@stack, @logger, @message);
        </commandText>
        <parameter name="@time_stamp" layout="${date}"/>
        <parameter name="@level" layout="${level}"/>
        <parameter name="@logger" layout="${logger}"/>
        <parameter name="@stack" layout="${stacktrace}"/>
        <parameter name="@message" layout="${message}"/>
      </target>
    </targets>
    <rules>
      <logger name="*" minlevel="Trace" writeTo="database" final="true" />
    </rules>
  </nlog>
  <appSettings>
    <add key="WebDAL" value="Hszw.SQLServerDAL"/>
    <add key="SiteRoot" value="d:\www\hszw"/>
    <add key="ImagePath" value="http://img.hxtk.com/book" />
    <add key="DianKaRebate" value="0.8" />
    <add key="SzxRebate" value="0.9" />
  </appSettings>
  <connectionStrings>
    <add name="SelectConnectionString" connectionString="server=127.0.0.1;user id=sa;password=#;database=#;Max Pool Size =200;Connection Lifetime=300;" providerName="System.Data.SqlClient" />
    <add name="UpdateConnectionString" connectionString="server=127.0.0.1;user id=sa;password=#;database=#;Max Pool Size =200;Connection Lifetime=300;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <!-- url重写-->
  <rewriter>
    <rewrite url="/book/(.*)/default\.html" to="/showbook.aspx?bookid=$1" processing="stop" />
    <rewrite url="/book/(.*)/content\.html" to="/readbook.aspx?bookid=$1" processing="stop" />
    <rewrite url="book/(.*)/(.*)\.html" to="/content.aspx?bk_ch=$2&bk_id=$1" processing="stop" />
    <rewrite url="/bookrank(.*)\.html" to="/bookrank.aspx?ranktype=$1" processing="stop" />
    <rewrite url="/class(.*)\.html" to="/listbook.aspx?categoryid=$1" processing="stop" />
    <rewrite url="/quanbenxiaoshuo\.html" to="/finishedbook.aspx" processing="stop" />
    <rewrite url="/yc\.html" to="/yc.aspx" processing="stop" />
    <rewrite url="/vipbook\.html" to="/vipbook.aspx" processing="stop" />
    <rewrite url="/user/(.*)\.html" to="/user.aspx?userid=$1" processing="stop" />
    <rewrite url="/booklist(.*)\.html" to="/booklist.aspx?page=$1" processing="stop" />
  </rewriter>
   --------------------编程问答-------------------- <system.web>
    <!-- 
            设置 compilation debug="true" 可将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。
        -->
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>
    <!--
            通过 <authentication> 节可以配置 ASP.NET 用来 
            识别进入用户的
            安全身份验证模式。 
        -->
    <authentication mode="Forms">
      <forms name="HszwAuth" loginUrl="~/Account/Login.aspx" slidingExpiration="true" cookieless="UseCookies" />
    </authentication>
    <authorization>
      <allow users="*" />
      <!-- 允许所有用户 -->
      <!--  <allow     users="[逗号分隔的用户列表]"
                             roles="[逗号分隔的角色列表]"/>
                  <deny      users="[逗号分隔的用户列表]"
                             roles="[逗号分隔的角色列表]"/>
            -->
    </authorization>
    <!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。
 -->
    <customErrors mode="Off"/>
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </controls>
    </pages>
    <httpHandlers>
      <add verb="*" path="go.aspx" type="Hszw.Web.ProcessFlow.Advertisement, Hszw.Web"/>
      <add verb="*" path="/account/logout.aspx" type="Hszw.Web.ProcessFlow.Logout,Hszw.Web"/>
      <add verb="*" path="DownLoad.aspx" type="Hszw.Web.ProcessFlow.DownBook,Hszw.Web"/>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <remove name="Session" />
      <remove name="WindowsAuthentication" />
      <remove name="PassportAuthentication" />
    </httpModules>
    <machineKey validationKey="259D2FC98CCFBBD8975855D6F9172A08C06BE84C" decryptionKey="7998C7DAA4D23986509D32700A0360872E34BDCCB4FF56B9" validation="SHA1"/>
    <globalization requestEncoding="utf-8" culture="zh-CN" fileEncoding="gb2312" />
    <sessionState mode="Off"/>
  </system.web>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="WarnAsError" value="false"/>
      </compiler>
    </compilers>
  </system.codedom>
  <!-- 
        在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
        节。对早期版本的 IIS 来说则不需要此节。
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
           type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
           type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </handlers>
  </system.webServer>
  <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>
</configuration>
--------------------编程问答-------------------- 貌似没啥问题 --------------------编程问答-------------------- 有没有用什么加速? --------------------编程问答-------------------- iis有变化吗?
原来是多少的?现在的是多少的? --------------------编程问答-------------------- 每一台机器的PublicKeyToken好像都不一样,你这台机器的PublicKeyToken是这个吗?
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,