Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET configuration - setting up custom membership

ASP.NET configuration - setting up custom membership

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsecurityworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chesnokov Yuriy
    wrote on last edited by
    #1

    I've got SQL Express 2005 and VS 2008 team. As they specified in Pro ASP.NET 3.5 in C# 2008 1) run aspnet_regsql to generate say ProjMembership db 2) copied it into App_Data from SQLEXPRESS\data folder and attached its path in sseutil -a somepath\ProjMemebership ProjMembership 3) setup web.config as <connectionStrings>       <add name="MyConnString"             connectionString="Data Source=.\SQLEXPRESS;             Integrated Security=SSPI;initial catalog=ProjMembership"/> </connectionStrings> <authentication mode="Forms" /> <membership defaultProvider="MyProvider">    <providers>       <add name="MyProvider"                type="System.Web.Security.SqlMembershipProvider"                connectionStringName="MyConnString"                enablePasswordRetrieval="false"                enablePasswordReset="true"                requiresQuestionAndAnswer="false"                applicationName="/"                requiresUniqueEmail="true"                passwordFormat="Hashed"                maxInvalidPasswordAttempts="3"                minRequiredPasswordLength="5"                minRequiredNonalphanumericCharacters="0"                passwordAttemptWindow="10"                passwordStrengthRegularExpression="" />                     </providers> </membership> <roleManager enabled="true" />         But when I go to security tab in ASP.NET configuration from VS, it reports: Cannot open database "ProjMembership" requested by the login. The login failed. Login failed for user 'ACER\user'????

    Чесноков

    V 1 Reply Last reply
    0
    • C Chesnokov Yuriy

      I've got SQL Express 2005 and VS 2008 team. As they specified in Pro ASP.NET 3.5 in C# 2008 1) run aspnet_regsql to generate say ProjMembership db 2) copied it into App_Data from SQLEXPRESS\data folder and attached its path in sseutil -a somepath\ProjMemebership ProjMembership 3) setup web.config as <connectionStrings>       <add name="MyConnString"             connectionString="Data Source=.\SQLEXPRESS;             Integrated Security=SSPI;initial catalog=ProjMembership"/> </connectionStrings> <authentication mode="Forms" /> <membership defaultProvider="MyProvider">    <providers>       <add name="MyProvider"                type="System.Web.Security.SqlMembershipProvider"                connectionStringName="MyConnString"                enablePasswordRetrieval="false"                enablePasswordReset="true"                requiresQuestionAndAnswer="false"                applicationName="/"                requiresUniqueEmail="true"                passwordFormat="Hashed"                maxInvalidPasswordAttempts="3"                minRequiredPasswordLength="5"                minRequiredNonalphanumericCharacters="0"                passwordAttemptWindow="10"                passwordStrengthRegularExpression="" />                     </providers> </membership> <roleManager enabled="true" />         But when I go to security tab in ASP.NET configuration from VS, it reports: Cannot open database "ProjMembership" requested by the login. The login failed. Login failed for user 'ACER\user'????

      Чесноков

      V Offline
      V Offline
      VijayVishwakarma
      wrote on last edited by
      #2

      Connectionstring is missing Trusted User=True or say user id and password to login to sql server. Give a try by adding this.

      Vijay V. Yash Softech

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups