Re: Trusted sql connection failure

From: Ken Schaefer (kenREMOVE_at_THISadopenstatic.com)
Date: 02/14/05


Date: Mon, 14 Feb 2005 14:34:58 +1100

Is the SQL Server located on a different machine to the IIS webserver? If
so, you probably need to run ASP.NET under a domain account (or find some
other way of sending the credentials from IIS -> SQL Server). At the moment
it appears that you are running ASP.NET under a local account (either
Machine\ASPNET or NT AUTHORITY\Network Service) and local accounts can't be
assigned permissions to remote resources.

Cheers
Ken

"Arie" <Arie@discussions.microsoft.com> wrote in message
news:DD45121B-BDBC-4F57-90D1-BA8D3EFA24A4@microsoft.com...
> Hi all
>
> I have a asp.net application, developed in Beta 2. It is working fine when
> the project is stored in a web file system mode. I had to switch to work
> in a
> local IIS mode, and at this mode I'm failing to connect to the database
> (MSSql). This is the message in the SqlException: Login failed for user
> '(null)'. Reason: Not associated with a trusted SQL Server connection.
>
> Thnx
> AZ



Relevant Pages

  • Re: Kerberos from XP to IIS hosting ASP.NET 2.0 Web Service help
    ... If your MS SQL Server is running under a custom /local/ account, ... not sure how Kerberos authentication is supposed to work. ... If SQL Server is running under a domain account, ... you are not authenticating to IIS as anonymous. ...
    (microsoft.public.inetserver.iis.security)
  • Windows Authentication with IIS on separate machines
    ... -Web Application is using Basic Authentication set in IIS ... -Added user account TESTUSER and gave read access to ... in SQL server but doesn't work if user account was ... Windows account, ...
    (microsoft.public.sqlserver.security)
  • RE: IUsr can not login
    ... I too am not sure what the IIS lockdown tool does (I am a SQL Server ... that had been assigned permission to login into SQL ... Amongst the NT account names will be the account/group that IIS ...
    (microsoft.public.sqlserver.security)
  • Re: Login failed for user NT AUTHORITYANONYMOUS LOGON
    ... You can find the account that the web app is running under by looking in the ... 'Identity' tab of the relevant 'Application Pool' within IIS 6. ... > a) The Web server is on a seperate box to SQL Server. ... > c) I've enabled anonymous access, setting it to the correct domain ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Security in DMZ
    ... Actually I got it done with a local account today. ... I had to create two identically local accounts on the SQL server and DMZ ... When get paid, I laugh all the ...
    (microsoft.public.sqlserver.security)