Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 5th, 2007, 02:31 PM
Authorized User
Join Date: Mar 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login failed for user 'NT AUTHORITY\ANONYMOUS LOGO

I have an app that is being developed for our Intranet.
I have it so it will authenticate users that are members in an Active directory group.
But I am running into a problem when they try to connect to the SQL server.
Instead of connecting based on the Windows group, it is still connecting as NT AUTHORITY\ANONYMOUS .
How can i get the SQL connection to use the Windows group?
here is the Web.config:

    <authentication mode= "Forms">
      <forms loginUrl="Webform2.aspx" name="adAuthCookie" timeout="60" path="/" >
    <allow users="*" />
      <deny users="?" />
    <identity impersonate="true" />

Here is my connection string
"workstation id=5WQ1K81;packet size=4096;integrated security=SSPI;data source=SERVERNAME;persist security info=False;initial catalog=livedb"

I setup a Windows group on the Database and in Active Directory.

The exception from SQL is
System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

Let me know if you need more details.

Old January 20th, 2007, 08:51 AM
Registered User
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


Recently I also faced the same error, in my case Web site's "Host Header" is different from server's NetBIOS name.

Check the below URL that I found on microsoft server:

Rohan Reddy

Old October 24th, 2008, 07:26 AM
Registered User
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Change your data connection file

    <udc:UseExplicit CredentialType="NTLM">
                <udc:UserId>YOUR USER</udc:UserId>
                <udc:Password>YOUR PASSWORD</udc:Password>

and also don't forget to change your configuration file

<udc:ConnectionString>Provider=SQLOLEDB.1;Integrat ed Security=SSPI;persist security info=False;Trusted_Connection=Yes;Initial Catalog=YOUR DATABASE;Data Source=YOUR SERVER;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=YOUR USER ID;Use Encryption for Data=False;Tag with column collation when possible=False</udc:ConnectionString>

Being Optimisitc helps a lot

Similar Threads
Thread Thread Starter Forum Replies Last Post
failed for user 'NT AUTHORITY\NETWORK SERVICE' GS ASP.NET 2.0 Professional 5 March 26th, 2007 05:16 AM
Login failed for user 'NT INSTANS\NETWORK SERVICE' keysersoze BOOK: ASP.NET Website Programming Problem-Design-Solution 3 April 6th, 2005 01:25 PM
SQL Server / Login failed for user 'NT AUTHORITY ElPato ASP.NET 1.0 and 1.1 Basics 2 November 14th, 2004 10:03 AM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.