473,396 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Database Login Fail - Weird Problem

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
Nov 19 '05 #1
1 1265
if you want the asp.net pages to run under the asp.net account, don't set
identity impersonate to true.

-- bruce (sqlwork.com)

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:uz**************@tk2msftngp13.phx.gbl...
| 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
|
|
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mdh | last post by:
I am trying to learn the basics of MVC applications using a Tomcat infrastructure. I'm starting by building a simple application with: * a login.jsp page for a basic login form with a action...
4
by: Phil | last post by:
Hi all, I need some help to access an SQL db on another machine. I am using VB.NET and remoting to make a client/server connection...although I don't think this is relevant to the question. I...
14
by: L Mehl | last post by:
I tested a FE/BE application developed in A2000 on a A2002 machine and got this message when exiting the app. Clicking the only available button "OK", exits the application, as intended. The FE...
1
by: ad | last post by:
I want to backup and restore a database in asp.net. The backup process is successful and fail when restore with message: User does not have permission to RESTORE database 'Health'. RESTORE...
0
by: clintonG | last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2 development. After installing Visual Studio and SQL Express RTM my application has blown up. Logging in to the application...
11
by: Sheldon Glickler | last post by:
I have code that does not delete from a database. The same code (cut an paste in the same file, but different function and having a different query) works. So, of course, I tested the query...
2
by: esqueletoh | last post by:
Hi, i'm having a very weird problem. I have an application Asp .Net (Framework 1.1) that uses form authentication. To deny access to non-authenticated users i use <authorization> <deny users="?"...
7
by: Deccypher | last post by:
Hi Im trying to do something a little more complex with my login script at the moment it works fine, checks the username and password with the database if its wrong it echo's a error and if its right...
5
by: mcfly1204 | last post by:
I am attempting to use WebRequest to access a page that requires a login/password to access. My last WebRequest continues to timeout. Any help or thoughts would be appreciated. namespace...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.