Hi,
I have a web application (asp.net 2.0 and SQL Server 2005 on Windows 7). I host the application in IIS 7.0, for testing over the small intranet in my office. I use a login page for user authentication using aspnetdb. Users get authenticated and the application moves on to the home page. At this stage, a page opens, which retrieves data from server and displays in a gridview. Here I get an error message saying that the user does not have rights to access the data. I check the access rights given in the sql server and the connection string in IIS 7.0 for the application. The user is given rights to access the db as well as the relevant tables.
If I remove the login.aspx page and load the home page directly, there are no errors and everything works like a charm!
Where am I going wrong?
I am using a normal login control in the login.aspx page. Am I required to authenticate the user or application once again after the user's credentials are authenticated? If so, how do I do that?