RE: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.
- From: musosdev <musoswire@xxxxxxxxxxxxxxxx>
- Date: Tue, 4 Jul 2006 00:25:02 -0700
Steven,
Ok, it's still broken, so to reply to your original questions...
Hi Dan,
The error message did indicate that the login user doesn't have sufficient
permission access the target database, and since you mentioned the error
occur at the connection opening time, it is likely the calling
application's security identity doesn't have sufficient permission.
Currently I'd like to confirm the following information:
1. Are you running the ASP.NET application on a windows 2003 server with
IIS 6(also the ASP.NET application is hosted in IIS rather than .net test
server)?
IIS 6 running on Win2k3 Standard. The app is running in it's own AppPool and
its built on .NET v2.0.50727.
2. Are you connecting to a SQL Server database in server engine or a SQL
Express data file?
MSDE, so thats SQL Server Engine I think? :)
3. If convenient, would you also paste the connectionstring to us(whether
use sql authentication or integrated windows)..
Don't have it to hand, but I could get it if necessary... I can tell you
that we use Windows Authentication for the app, and I think the sql conex
string is using a Trusted Connection.
Okay, you then said...
If you're using IIS6, then the ASP.NET security context should be the
application pool's identity (if you're not using impersonate in ASP.NET),
and by default the application pool identity is "NT AUTHORITY\NETWORK
SERVICE", however ,it is possible that someone changed it to other ones
such as LOCAL SYSTEM or LOCAL Service(these three accounts is common ones
used by service application).
This is a possibility cos I'm not the server Admin, so something could have
been changed by someone else. How do I check/change the Security context?
Thanks for your time!
"Steven Cheng[MSFT]" wrote:
Thanks for your followup Dan,.
Nevermind. Just keep your focus on your first priority items and if there
is anything else need help later, please feel free to post here.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
- Follow-Ups:
- RE: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.
- From: Steven Cheng[MSFT]
- RE: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.
- References:
- RE: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.
- From: Steven Cheng[MSFT]
- RE: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.
- Prev by Date: Validation Controls
- Next by Date: Re: How to use client-side assembly via a web application
- Previous by thread: RE: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.
- Next by thread: RE: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.
- Index(es):
Relevant Pages
|