IIS vs ASP.Net Authentication problem
From: njtom (njtom_at_discussions.microsoft.com)
Date: 11/12/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: IIS vs ASP.Net Authentication problem"
- Previous message: TOS: "HELP! - Encountered erors while importing web parts"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: IIS vs ASP.Net Authentication problem"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: IIS vs ASP.Net Authentication problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 12 Nov 2004 09:09:02 -0800
------
Setup
------
- IIS runs with a domain user account 'domain\iisuser'
- SQL Server has 'domain\iisuser' login setup to act as a data reader/writer
Requirement is to use 'domain\iisuser' to authenticate in SQL Server
-------------------
More info on setup
-------------------
- asp.net 1.1
- processModel in machine.config has userName='machine'
password='AutoGenerate'
- Only Integrated Windows Authentication enabled (Anonymous/basic/digest
unchecked) in IIS 5
- Connection string used : "Provider=SQLOLEDB;Data
Source=CCMIWS05;Database=t5CONV;Integrated Security=SSPI;"
- Using Windows XP SP2 as a development box.
----------------------------
Microsoft Documentation says
----------------------------
Check the url given here for an exact description
Impersonation is disabled ->
This is the default setting for backward compatibility with ASP. In this
instance, the ASP.NET thread will run using the process token of the
application worker process, which by default is the IIS system account,
regardless of which combination of IIS and ASP.NET authentication
have been used.
<identity impersonate="false"/>
(URL:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/authaspdotnet.asp)
------------
The problem
------------
The 'domain\iisuser' is not authenticated in SQL Server and ASPNet seems to
get authenticated which fails as it's not a user in SQL Server.
The error message I am getting is:
Login failed for user 'CCMIWS05\ASPNET'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Login failed for user
'CCMIWS05\ASPNET'.
***What am I doing wrong per documentation?***
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: IIS vs ASP.Net Authentication problem"
- Previous message: TOS: "HELP! - Encountered erors while importing web parts"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: IIS vs ASP.Net Authentication problem"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: IIS vs ASP.Net Authentication problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|