Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 5th, 2007, 02:31 PM
Authorized User
Join Date: Mar 2006
Location: , , .
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.

  #2 (permalink)  
Old January 20th, 2007, 08:51 AM
Registered User
Join Date: Dec 2004
Location: , , .
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

  #3 (permalink)  
Old October 24th, 2008, 07:26 AM
Registered User
Join Date: Apr 2007
Location: , , .
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 06:57 PM.

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