User Login
Latest Technology Articles
- PCinvent Studio Programming Solutions
- Fedora Core 12 YumEx Problem
- VMware Guest Wide Screen Resolution Problem
- DD-WRT Router Firmware
- OpenVPN AS Client Installation Problem Fix
- Redhat Yum problem
- File Server Solution
- Old C++ Project of ATM Machine
- My Research and Project of the Reversed Array List (Reversed Index Array List)
- My Research of Linear Data Structure
| Solve Unable to Pass AspNetSqlProvider test in ASP.net Web Site Administration Tool |
|
|
| Sunday, 30 December 2007 | |
|
After launched the Web Site Administration Tool to do the membership & Identity (The Login Control), when I clicked on the "Test" of AspNetSqlProvider, it complicanted that it is unable to connect to the database, then I did the following and solve it......
I went to start=> Microsoft Visual Studio 2005=>Visual Studio Tools=>Visual Studio 2005 Command Prompt Then, typed in aspnet_regsql, the GUi of SQL Server Setup Wizard will pop out. Followed the instruction and re-built the database. Last Step, I edited the machine.config in
Don't know why the data source with the correct database server name didn't work, I eliminated the name, so from original code of this XML:
I changed it to:
Note that data source value is change from MSSQLSERVER to a dot "."
Then I did a test in Web Site Administration Tool again, the test was completed without any problem.
If this doesn't work for you, please check if "aspnetdb" exist in your sqlServer. Go to Visual Studio=>Server Explorer=>Data Connection and check it. Because by default, the AspNetAccessProvide is using aspnetdb as its database. so the name of it in the data connection is YourServerName.aspnetdb.do Comments (2)
![]() written by pABLO, March 20, 2009
Thank you man!
Write comment
Tags: Web Site Administration Tool sqlServer Connection Problem Data Source AspNetSQLProvider machine.config connectionStrings Login Control |
|
| Last Updated ( Wednesday, 26 March 2008 ) |
| < Prev | Next > |
|---|






