2016-06-20 12 views
0

メインページのいくつかの結果を簡単な管理者ページで作成しました。 FireFoxとChromeではすべてが正常に機能していますが、Internet Explorerでログインしようとすると、認証情報を入力してログインボタンをクリックするたびにログインページにリダイレクトされます。Internet ExplorerでASP.NET認証が動作しません

のWeb.config:

<!-- Authentication --> 
    <authentication mode="Forms"> 
     <forms loginUrl="~/beheer/login.aspx" name=".ASPXFORMSAUTH" defaultUrl="~/beheer/default.aspx" path="beheer"> 
     <credentials passwordFormat="Clear"> 
      <!-- Login en wachtwoord --> 
      <user name="beheerder" password="beheerder"/> 
     </credentials> 
     </forms> 
    </authentication> 
    <authorization> 
     <allow users="*" /> 
     <deny users="?" /> 
    </authorization> 

    </system.web> 

    <!-- Toegangscontrole beheer overzicht --> 
    <location path="beheer"> 
    <system.web> 
     <authorization> 
     <deny users="?" /> 
     </authorization> 
    </system.web> 
    </location> 

のGlobal.asax:

static void RegisterRoutes(RouteCollection routes) { 
    routes.MapPageRoute("beheer", "beheer", "~/beheer/default.aspx"); 
} /* RegisterRoutes */ 

Login.aspx.cs:

protected void LoginButton_Click(object sender, EventArgs e) { 
      String LoginGebruikersnaam = NameTextBox.Text; 
      String LoginPaswoord = PasswordTextBox.Text; 

      if (FormsAuthentication.Authenticate(LoginGebruikersnaam, LoginPaswoord)) { 
       FormsAuthentication.RedirectFromLoginPage(LoginGebruikersnaam, this.RememberMeCheckBox.Checked); 
      } else { 
       this.FoutmeldingPlaceHolder.Visible = true; 
      } 
     } /* LoginButton_Click */ 

誰かがこの答えを知っていますか?

+0

可能な重複:http://stackoverflow.com/questions/22053394/asp-net-forms-authentication-login-page-redirect-loop-ie-7-8-and-11-but-n。ログインテストのIEバージョンは既存の質問と一致していますか? –

+0

私はそれをすべてのIE版(Edge、10,9,8,7,5)に持っています。 – Niels

+0

IEはあなたのウェブサイトを互換モードでレンダリングしますか? –

答えて

0

解決策: ログインページをウェブサイトのルートに移動する必要がありました。

関連する問題