aspMemeberShip db help

G

Guest

I'm trying to create user tables in my own database to use on my web site. I
was able to create all of tehe aspnet_[TblName] in my database but when I run
the admin web site and try to connect using the AspNetSqlRoleProvider and
AspNetSqlMembershipProvider I get the following error message:

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site
Administration tool, use the aspnet_regsql command-line utility to create and
configure the database, and then return to this tool to set the provider.



and I did all of this.. How can I connect the ASP.NET login control to my
database?
 
F

Fernando Chilvarguer

If you are adding all the objects on your own, make sure to also add the
stored procedures and views necessary to get it all working.

My suggestion is to use the tool Microsoft provides to add all the necessary
objects to a database: aspnet_regsql (a google search will give you the
usage details).
 
G

Guest

I used the aspnet_regsql.exe and it created all of the tables, and stored
procedures. So how can i connect to that table when i drag and drop the login
control to my forms, create user roles, add users, etc.?



Fernando Chilvarguer said:
If you are adding all the objects on your own, make sure to also add the
stored procedures and views necessary to get it all working.

My suggestion is to use the tool Microsoft provides to add all the necessary
objects to a database: aspnet_regsql (a google search will give you the
usage details).

CSharpguy said:
I'm trying to create user tables in my own database to use on my web site.
I
was able to create all of tehe aspnet_[TblName] in my database but when I
run
the admin web site and try to connect using the AspNetSqlRoleProvider and
AspNetSqlMembershipProvider I get the following error message:

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site
Administration tool, use the aspnet_regsql command-line utility to create
and
configure the database, and then return to this tool to set the provider.



and I did all of this.. How can I connect the ASP.NET login control to my
database?
 
W

wincek

You must configure your web.config file, then login contol will get
information from web.config and also connect to serwer. Use google to search
default configuration for web.config.

And look at : http://www.aquesthosting.com/HowTo/Sql2005/Providers.aspx
maybe you help you

/Pozdrawiam

U¿ytkownik "CSharpguy said:
I used the aspnet_regsql.exe and it created all of the tables, and stored
procedures. So how can i connect to that table when i drag and drop the
login
control to my forms, create user roles, add users, etc.?



Fernando Chilvarguer said:
If you are adding all the objects on your own, make sure to also add the
stored procedures and views necessary to get it all working.

My suggestion is to use the tool Microsoft provides to add all the
necessary
objects to a database: aspnet_regsql (a google search will give you the
usage details).

CSharpguy said:
I'm trying to create user tables in my own database to use on my web
site.
I
was able to create all of tehe aspnet_[TblName] in my database but when
I
run
the admin web site and try to connect using the AspNetSqlRoleProvider
and
AspNetSqlMembershipProvider I get the following error message:

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site
Administration tool, use the aspnet_regsql command-line utility to
create
and
configure the database, and then return to this tool to set the
provider.



and I did all of this.. How can I connect the ASP.NET login control to
my
database?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top