Database Login Fail - Weird Problem

From: Mythran (kip_potter_at_hotmail.comREMOVETRAIL)
Date: 02/17/05


Date: Thu, 17 Feb 2005 11:27:25 -0800

I keep getting the exception, "Cannot open database requested in login
'dbblah'. Login fails. Login failed for 'domain\user'".

I have ASPNET setup as the user in IIS, identity impersonate is true in the
web.config file. The IUSR and ASPNET identities have read and execute
permissions for the virtual directory's folder path.

Here's the weird part, if I hit F5 (refresh) it prompts to retry posting
back the form. I accept and it works fine. Every screen that connects the
database fails, when I refresh it works. CONFUSING!

The ASPNET account has access to the database. No other user accounts do
have access. This is the way we want it. Under the iis application for the
virtual directory we have set, the Anonymous user is set to domain\aspnet
(domain being our domain). If I uncheck the "Integrated Windows
authentication" checkbox, I don't get the error anymore and it works just
fine.

OS is Windows 2000 Server
.Net Framework v1.1

User set in machine.config is our aspnet account with the correct password
set. The anonymous user set in iis also has the correct password set.

Any help is appreciated :)

Mythran



Relevant Pages

  • Re: Trouble granting access to user in MSDE-2000
    ... Have you tried adding ASPNET login as a user in master database? ...
    (microsoft.public.sqlserver.security)
  • Login failure from asp.net delegation
    ... We want to use windows 2000 User auth to query sql 2000 using security ... checked "Integrated Windows Auth" in IIS and have added this to web.config. ... I have not added a login to the database since i thought it passes in the ...
    (microsoft.public.sqlserver.security)
  • Encrypt / Decrypt password?
    ... IIS 4.0 ... Web application has a login / password ASP page. ... database. ...
    (microsoft.public.security)
  • Re: ASP/SQL Server Setup
    ... I don't want to have to put a user in my database for every ... SQL server using the windows authentication for the machine that IIS is ... If you have a login page already, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Security is TOO GOOD!
    ... > database that I created in MSDE. ... > panel and made ASPNET a member of the Administrators ... > Cannot open database requested in login 'MyDataBase'. ...
    (microsoft.public.dotnet.framework.aspnet.security)