Problem with Forms Authentication Provider
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Problem with Forms Authentication Provider

  1. #1
    Join Date
    Mar 2012
    Posts
    3

    Problem with Forms Authentication Provider

    Hi, I have a problem with adding users to my database that I have created using the aspnet_regsql. The problem is that I can't seem to make it add users into the database using the WAT.

    I can connect to the database using sql connection in c sharp and I can see the database from the database explorer.

    maybe something is wrong with my code?

    PHP Code:
    <configuration>
        <
    system.web>
            <
    authentication mode="Forms" />
          <
    membership>
            <
    providers>
              <
    add connectionStringName="MyMembershipConnString" applicationName="MyMembership"
                
    enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true"
                
    requiresUniqueEmail="true" passwordFormat="Hashed" name="MyMembershipProvider"
                
    type="System.Web.Security.SqlMembershipProvider" />
            </
    providers>
          </
    membership>
          
            <
    compilation debug="true" targetFramework="4.0" />
        </
    system.web>
      
      <
    connectionStrings>
        <
    add name="MyMembershipConnString"
             
    connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnetdb;Integrated Security=True"/>
      </
    connectionStrings>
    </
    configuration

    thx for helping!

  2. #2
    Join Date
    Apr 2006
    Location
    India
    Posts
    107

    Re: Problem with Forms Authentication Provider

    Are you getting any error?

    If yes then post the error details. that could be helpful to track issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center