<authentication mode="Forms"> <forms loginUrl="adminlogin.aspx"> <credentials> <user name="admin" password="admin" /> </credentials> </forms> </authentication> </system.Web> <location path="admin"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location>
This works well in prohibiting access to anything in the directory "admin" it bounces you back to the login page. Only problem is when you log it with admin,admin, it then redirects to the page it is supposed to, but I get the following error:
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
I thought maybe it was due to the webpage being access AFTER authentication connecting to the remote database, but I created a "test.aspx" page, putting only some text in the body, and put it in the admin folder. On loging in, it throws the same error.
What database is the login.aspx page trying to access?

New Topic/Question
Reply




MultiQuote






|