Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Login Failed after running aspnet_regsql

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cs_in_va - 07 Mar 2008 17:12 GMT
I ran aspnet_regsql to create the membership tables in my current
database (ADAHSystem), however, now when I try to configure the user
accounts I get, "Cannot open user default database. Login failed." I
have done some googling and found in the the examples I see something
like this:

<remove name="LocalSqlServer"/>
       <add name="LocalSqlServer"
            connectionString="server=.;database=aspnetdb;integrated
security=sspi;"/>

In my web config I have this for my database:

<add name="csADAHSystem"
    connectionString="Data Source=CHRIS-PC;Initial
Catalog=ADAHSystem;Persist Security Info=True;User
ID=XXXXXXXXXX;Password=XXXXXXX"
    providerName="System.Data.SqlClient"/>

This is setup the same as I have on my Godaddy account. The connection
string works fine on my web pages, but does not work for the
membership information.

Then when I go to provide I only see: AspNetSqlProvider

I click test and then I get: " 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. " Which I have already run.
cs_in_va - 07 Mar 2008 17:15 GMT
> I ran aspnet_regsql to create the membership tables in my current
> database (ADAHSystem), however, now when I try to configure the user
[quoted text clipped - 26 lines]
> utility to create and configure the database, and then return to this
> tool to set the provider. " Which I have already run.

I added the values just like in the example but used my own username
etc, and it worked, but why and would it still work when I upload my
web site to Godaddy?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.