为什么不能识别受信任的提供程序?

时间:2018-11-07 11:57:12

标签: iis iis-7 asp.net-membership simplemembership sqlmembershipprovider

我的web.config在<system.web>中具有以下内容:

<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
  <providers>
    <clear />
    <add 
      name="SqlProvider" 
      type="System.Web.Security.SqlMembershipProvider" 
      connectionStringName="xxx"
      applicationName="yyy"
    />
  </providers>
</membership>

我的administration.config有:

<trustedProviders allowUntrustedProviders="false">
    <add type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</trustedProviders>

但是,在IIS管理器中,如果我单击.NET Users功能,则会得到以下信息:

enter image description here

为什么会这样,我该如何解决?

0 个答案:

没有答案