Author: attrib75 | Posted on: 2/23/2010 5:38:49 PM | Views : 522

I have an asp.net site running on XP IIS just fine, with login using aspnetdb.  However, I wrote a page that has a datasource that connects to the same db, with a gridview that displays users.  I've done this before on 2003 server iis 6 no problem.  Here I get,
 
Cannot open user default database. Login failed.
Login failed for user (domain\username)
This is the identity I set in IIS 6.0 under authentication methods for anonymous access.  I had to do this because the site connects to a remote accessdb as well.  I cant use a local account or aspnet account.
 
I dont understand how I can use the same site to login and out, but not to access this page.
 
This is my asp.net conection string
 
data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;user instance=true
 
The web config has ...

Go to the complete details ...