Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 1st, 2007, 04:52 AM
Registered User
 
Join Date: Dec 2006
Location: Gent, Oost-Vlaanderen, Belgium.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default membership provider

hey
i got troubles with the memberhip provider
first i want to place my database in a folder other then App_data
it is located at

d:\accounts\teamversuzbe\data\ASPNETDB.mdf

at this place nobody is ever be able to download the database it is a map under the root

so i create a default provider like this

<connectionStrings>
    <add name="sqlserver" connectionString="Data Source=.\SQLExpress;Integrated Security=true;AttachDBFileName=d:\accounts\teamver suzbe\data\ASPNETDB.mdf;User Instance=true" />
</connectionStrings>

     <membership defaultProvider="AspNetSqlMembershipProvider">
        <providers>
         <add
            name="AspNetSqlMembershipProvider"
            type="System.Web.Security.SqlMembershipProvider"
            connectionstringname="sqlserver"
            />
        </providers>
     </membership>

now when i do this
Dim status As MembershipCreateStatus
Dim _user as MembershipUser = Membership.CreateUser("waltz", "dq0369999", "davyquyo@pandora.be", String.Empty, String.Empty, False, status)

nothing happens and there is no data stored and i don't have an error

when i add this
response.write(_user.username)

i got the error
object reference is not set as an instance of an object

can someone tell me what i do wrong




Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Membership Provider Scott663 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 1st, 2008 05:16 PM
Custom Membership Provider kulkarnimonica ASP.NET 2.0 Professional 0 June 21st, 2007 03:56 PM
Membership Provider error jamara ASP.NET 2.0 Basics 1 March 12th, 2007 02:01 PM
Help with membership Provider... slim182 ASP.NET 2.0 Basics 1 February 19th, 2007 10:15 AM
Membership Provider bmains ASP.NET 2.0 Basics 4 April 13th, 2006 04:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.