Re: Error Message for Logon

From: Paul Glavich [MVP - ASP.NET] (glav_at_aspalliance.com-NOSPAM)
Date: 05/27/04


Date: Thu, 27 May 2004 21:38:30 +1000

Your web site is setup for anonymous logon, (and perhaps impersonation) and
your connection to the database is set to use SQl Integrated Security. This
will use the current user context/token, to logon to the SQL database, which
obviously fails. You either need to impersonate a valid user (either by
explicit use of credentials or using Windows integrated authentication in
IIS, and setting the auth mode to"Windows" in your web.config) and also
create a user account in your SQL database to match that/those users.
Alternatively, have the explicit user credentials specified in your
connection string.

-- 
- Paul Glavich
Microsoft MVP - ASP.NET
"Iain" <anonymous@discussions.microsoft.com> wrote in message
news:48796CF2-0B01-45B8-86BB-6F562B0920CD@microsoft.com...
> Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
> 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.SqlClient.SqlException: Login failed for
user 'NT AUTHORITY\ANONYMOUS LOGON'.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the exception
can be identified using the exception stack trace below.
>
> Stack Trace:
>
>
> [SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.]
>    System.Data.SqlClient.SqlConnection.Open() +761
>    APISoftware.Framework.UI.FrameworkForm.PopulateFromDatabase() +165
>
> [Exception: Could not connect to the framework database]
>
>
>


Relevant Pages

  • Re: Database for a WM5 device
    ... It sounds like I can use SQL CE on my WM5 device. ... .CreateDatabase line is generating an exception and I cannot figure out ... CE database on the desktop. ...
    (microsoft.public.pocketpc.developer)
  • Re: Reliably reproducing Native Exception 0xc0000005 on SQL CE 2.0
    ... SQL CE QP is not going to be able to optimize that stmt. ... >I am reliably reproducing the ExceptionCode 0xc0000005 native exception ... > SQL CE 2.0 database file ...
    (microsoft.public.sqlserver.ce)
  • SQL2k5 : Login failed for user KLEOASPNET
    ... Visual Web Dev) and, MS SQL 2005 with a database with ... send a query to the database. ... An unhandled exception occurred during the ... for the SQL Server. ...
    (microsoft.public.sqlserver.server)
  • Re: Ado.net performance question (SQL server vs OleDB data provider)
    ... All the possible exceptions are caught in the Database class ... and wrapped in my own exception type. ... I haven't had an opportunity to benchmark the Sql database provider classes ...
    (microsoft.public.dotnet.framework.adonet)
  • more date problems...
    ... I have a high number of computers that at logon write some information ... Because computers use different regional options, ... to this database return inconsistent results due to different date ... I'm a novice in SQL so any help would be greatly appreciated! ...
    (comp.databases.ms-sqlserver)