Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: :Login fails at System.Data.SqlClient.SqlConnection.Open()


Message #1 by Omar Javed <osjaved@y...> on Mon, 23 Jul 2001 09:53:25 -0700 (PDT)
Hi Everybody:

  

  I have created an access database which has a table

  (LogTable) consisting of usernames and passwords. I

  have it under an ODBC UserDSN name: login.

  

  I have my code in a file 'authent.aspx'.

  

  I am then trying to open this database and execute a

  read query.

  

  But I cannot open the database.  Following is the

  error that I get:

  

  Login failed for user 'NT AUTHORITY\SYSTEM'

  System.Data.SqlClient.SqlException: Cannot open

  database requested

  Login fails

     at System.Data.SqlClient.SqlConnection.Open()

     at

  ASP.authent_aspx.__Render__control1(HtmlTextWriter

  __output, Control parameterContainer)

  

  What do I need to do to open the database?

  

  The second thing I wanted to ask is:

  

  In ASP, to get the parameters sent by another page

  through POST you would use Request(parameter). How

  would you do that in ASP.NET?

  

  Can you direct me toward a good reference site that

  describes the differences between ASP and ASP.NET?

  

  I am using a non-production machine with only MS

  VS.NET beta 2 installed on it.

  

  Thank you all for your help

  

  Omar

  Return to Index