tag:blogger.com,1999:blog-7622642958068848741.post1721205330598189722..comments2023-03-02T12:04:08.005-05:00Comments on Lance Spence: Sending an Activation Email with ASP.NET 2.0 ExpandedLance Spencehttp://www.blogger.com/profile/07718548554167283347noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-7622642958068848741.post-78203133757026574062008-04-21T22:19:00.000-04:002008-04-21T22:19:00.000-04:00I would suggest running ASPNET_REGSQL again and wh...I would suggest running ASPNET_REGSQL again and when prompted for the Database, choose the default. This will create a database called ASPNETDB with all the of the providers added.<BR/><BR/>I mentioned I wasn't sure how you ran the ASPNET_REGSQL command, because it can be invoked with a gui or by passing it command-line options. Invoking it by passing command-line options gives you more control over which providers to create or remove.<BR/><BR/>You might want to visit the following link for more information on ASPNET_REGSQL and it's various command-line options.<BR/><BR/>http://msdn2.microsoft.com/en-us/library/x28wfk74(VS.80).aspxLance Spencehttps://www.blogger.com/profile/07718548554167283347noreply@blogger.comtag:blogger.com,1999:blog-7622642958068848741.post-15112737144543057532008-04-21T16:43:00.000-04:002008-04-21T16:43:00.000-04:00When I ran ASPNET_regexe ,I choose1.Configure SQL ...When I ran ASPNET_regexe ,I choose<BR/><BR/>1.Configure SQL Server for application services<BR/>2.Windows Authentication or SQL Authentication.....>I choose windows Authentication and choose one of the existing database(not default)<BR/>3.In Setting summary....>It showed Server name and Database Name.<BR/>4.The Database has been created or modified.<BR/><BR/>I didnt see any option...> for choose the defaults or add specific providers (eg: Roles, Profiles, etc.)..which u were mensioning.Anonymoushttps://www.blogger.com/profile/17074945664079602808noreply@blogger.comtag:blogger.com,1999:blog-7622642958068848741.post-6940112142590138882008-04-21T13:22:00.000-04:002008-04-21T13:22:00.000-04:00You have something else going on which could be on...You have something else going on which could be one of a number of things. <BR/><BR/>I would Google that error and see if you can find the appropriate solution.<BR/><BR/>One quick thing, when you ran ASPNET_REGSQL did you choose the defaults or add specific providers (eg: Roles, Profiles, etc.)?Lance Spencehttps://www.blogger.com/profile/07718548554167283347noreply@blogger.comtag:blogger.com,1999:blog-7622642958068848741.post-12407237253268621462008-04-21T12:52:00.000-04:002008-04-21T12:52:00.000-04:00I already tried that..but when I click the securit...I already tried that..but when I click the security tab I am getting some error.<BR/><BR/>There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. <BR/><BR/>The following message may help in diagnosing the problem: "Unable to connect to SQL Server database". <BR/><BR/>I am using SQL server express edition and login the computer using administrator.<BR/>Thanks,<BR/>Bindu.Anonymoushttps://www.blogger.com/profile/17074945664079602808noreply@blogger.comtag:blogger.com,1999:blog-7622642958068848741.post-4918054488366248552008-04-21T08:54:00.000-04:002008-04-21T08:54:00.000-04:00Open the website in VS2005 or Visual Web Developer...Open the website in VS2005 or Visual Web Developer. <BR/><BR/>- Click Website on the top menu.<BR/>- Select ASP.NET Configuration.<BR/>- Click on the Security Tab.<BR/>- Under Roles, select Create or Manage roles.<BR/>- Enter "Power Users" for the role name and click Add Role.Lance Spencehttps://www.blogger.com/profile/07718548554167283347noreply@blogger.comtag:blogger.com,1999:blog-7622642958068848741.post-28777431024568474062008-04-20T14:22:00.000-04:002008-04-20T14:22:00.000-04:00No I didnt create "Power Users" in my ASPNETDB dat...No I didnt create "Power Users" in my ASPNETDB database.Can you please explain me how to do that?<BR/>I am very new to ASP.NET.<BR/>Thanks,<BR/>Bindu.Anonymoushttps://www.blogger.com/profile/17074945664079602808noreply@blogger.comtag:blogger.com,1999:blog-7622642958068848741.post-15748846371147811812008-04-18T21:00:00.000-04:002008-04-18T21:00:00.000-04:00Have you already created the "Power Users" Role in...Have you already created the "Power Users" Role in your ASPNETDB database?Lance Spencehttps://www.blogger.com/profile/07718548554167283347noreply@blogger.comtag:blogger.com,1999:blog-7622642958068848741.post-56625189581792132882008-04-18T20:54:00.000-04:002008-04-18T20:54:00.000-04:00Hi,Thanks for posting this article. But when I tri...Hi,<BR/>Thanks for posting this article. But when I tried to run this code I am getting an error on this line.<BR/>Roles.AddUsersToRole(user.ToString(), "Power Users");<BR/><BR/>cannot convert from 'string' to 'string[]<BR/><BR/>Please help me.<BR/><BR/>Bindu.Anonymoushttps://www.blogger.com/profile/17074945664079602808noreply@blogger.com