Be a creator than being an user

WebService to Create Users using ASP.Net

Here i will show you how to create a webservice to creating users using aspnetdb(database) using asp.net membership provider

First let me startup with the configuration. For this you gotta navigate to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and execute aspnet_regsql.exe which in turn will open up with a window which is nothing but application service configuration for sql server.

You can run Aspnet_regsql.exe without any command-line arguments to run a wizard that will walk you through specifying connection information for your SQL Server installation, and installing or removing the database elements for the membership, role management, profile, Web Parts personalization, and health monitoring features. You can also run Aspnet_regsql.exe as a command-line tool to specify database elements for individual features to add or remove, using the options listed in the table below.

If you want to give out the aspnet to configure with custom database then configure with the custom database name else just move on with next– next–next and finish which will get configured with aspnetdb which is the default database.

Then Create a new web service project in visual studio. Navigate to web.config file and enter this connection string under </appsettings>

Search

Search

Disclaimer

This is my personal blog. Articles written in this blog are from my experience for my own reference and to help others.
Do not reproduce my content anywhere, in any form without my permission. If any article written in this blog violates copyright, please contact me!
If you have a more elegant solution on any of the topics discussed- please post a comment, I'll be happy to hear!