Windows身份验证提示框

时间:2015-08-09 08:17:13

标签: asp.net asp.net-web-api

我收到了错误 -

  应用程序中的服务器错误。

     

配置错误说明:期间发生错误   处理为此请求提供服务所需的配置文件。   请查看下面的具体错误详情并修改您的   配置文件适当。

     

分析程序错误消息:每个配置文件只能出现一次。   有关例外,请参阅帮助主题。

来源错误:

Line 26:     <authentication mode="Windows"/>
Line 27: 
Line 28:     <authentication mode="Forms">
Line 29:       
Line 30:       <forms loginUrl="~/Account/Login.aspx" timeout="2880" />





<system.web>

<authorization>

  <allow users="CTS\dilip,CTS\global"/>
  <deny users="*"/>
</authorization>
<compilation debug="true" targetFramework="4.0" />

<authentication mode="Windows"/>

<authentication mode="Forms">

  <forms loginUrl="~/Account/Login.aspx" timeout="2880" />

</authentication>


<membership>
  <providers>
    <clear/>
    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
         enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
         maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
         applicationName="/" />
  </providers>
</membership>

<profile>
  <providers>
    <clear/>
    <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
  </providers>
</profile>

<roleManager enabled="false">
  <providers>
    <clear/>
    <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
    <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
  </providers>
</roleManager>

0 个答案:

没有答案
相关问题