我目前正在开发一个需要登录系统的 ASP.NET 网站。然而,当错误地假设角色数据库的连接字符串与我的 Microsoft SQL 数据库的连接字符串相同时,我意识到我不知道角色数据库在哪里。我通过我的计算机搜索类似于角色数据库的东西(搜索角色和 .mdf),但没有发现任何我可以识别的东西。你知道我在这里犯了什么错误吗?我是否必须专门创建此角色数据库?到目前为止,我的 web.config 代码读取为(没有个人识别顶部的连接字符串):
  <system.web>
    <compilation debug="true" targetFramework="4.5"/>
    <httpRuntime targetFramework="4.5"/>
    <roleManager  enabled="true" defaultProvider="providerForLogin">
      <providers>
        <add name="providerForLogin" type="System.Web.Security.SqlRoleProvider" applicationName="WebSite4" connectionStringName="ConnectionString" />
      </providers>
    </roleManager>
  </system.web>
</configuration>
提前感谢您提供的任何帮助!