Hi Folks,
I have created a login page that allows user to login to the system. I have a table in database called Users (userid, password, roleid) . When I try to login with proper user id and password the system let me login and redirects to proper page but if I use wrong password rather than giving me an error message the system generates an exception
"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 know that there is no connection error as when I use proper login credentials it let me in to the system. What is the potential cause of this behaviour ? I am using SQL Server 2008.