securepagel
09-29-2010, 07:48 AM
Hi All,
Sorry in advance for the wall of text, but I want to provide a complete background to this issue.
I'm still trying to get my existing code (formerly hosted at another provider) to play nicely with the DiscountASP settings. I'm experiencing an issue that others have had in the past, but I think I have a unique twist. I will explain my problem first, and if you guys need me to provide my code, I will be happy to do so.
I have a login page on my website (which uses a login control that I've done custom modifications to) which checks a username and password against the SQL 2008 R2 database I purchased from DiscountASP. The problem I'm having is that it allows a successful username/password match to log in without difficulty. That indicates to me that my database is SUCCESSFULLY connecting when the password is correct. However, if you type an incorrect password in, it throws up this error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
I can't understand why it can successfully connect if the user's password in the database is correct, but not connect if the user's password is incorrect?
Any ideas? I'll note that I tried adding connection string code to my web.config file that I found elsewhere on this forum, but that resulted in different errors.
Thanks!
Sorry in advance for the wall of text, but I want to provide a complete background to this issue.
I'm still trying to get my existing code (formerly hosted at another provider) to play nicely with the DiscountASP settings. I'm experiencing an issue that others have had in the past, but I think I have a unique twist. I will explain my problem first, and if you guys need me to provide my code, I will be happy to do so.
I have a login page on my website (which uses a login control that I've done custom modifications to) which checks a username and password against the SQL 2008 R2 database I purchased from DiscountASP. The problem I'm having is that it allows a successful username/password match to log in without difficulty. That indicates to me that my database is SUCCESSFULLY connecting when the password is correct. However, if you type an incorrect password in, it throws up this error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
I can't understand why it can successfully connect if the user's password in the database is correct, but not connect if the user's password is incorrect?
Any ideas? I'll note that I tried adding connection string code to my web.config file that I found elsewhere on this forum, but that resulted in different errors.
Thanks!