473,484 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUSLOGON'

I already following the steps in:
http://msdn.microsoft.com/library/de...edsecurity.asp

But I still get the error. I found it works when using VS.Net internal
web server. It use Domain\MachineName$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="true"/>)
Feb 23 '07 #1
3 6233
What this is telling you is that the Anonymous Logon identity doesn't have
permissions to the specified database. Obviously, as you stated, you can
either change the identity to one that does, or give this account permssions.
Or, you can use SQL Server authentication, which is often a lot easier.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Nick nkw" wrote:
I already following the steps in:
http://msdn.microsoft.com/library/de...edsecurity.asp

But I still get the error. I found it works when using VS.Net internal
web server. It use Domain\MachineName$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="true"/>)
Feb 23 '07 #2
you will notice, that if you connect to your dev box from another
machine it won't work with <identity impersonate="true"/and if you hit
the site locally on the web server it will work (just like using your
dev box).

to use impersonation you need to switch to kerberos (and enable forwarding).

-- bruce (sqlwork.com)
Nick nkw wrote:
I already following the steps in:
http://msdn.microsoft.com/library/de...edsecurity.asp
But I still get the error. I found it works when using VS.Net internal
web server. It use Domain\MachineName$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="true"/>)
Feb 23 '07 #3
my develop box is also connect to the SQL server remotely. And sp_who shows
my Windows domain users. Sounds internal web server and IIS handle SQL
Server logon differently.

"bruce barker" <no****@nospam.comwrote in message
news:O7*************@TK2MSFTNGP04.phx.gbl...
you will notice, that if you connect to your dev box from another machine
it won't work with <identity impersonate="true"/and if you hit the site
locally on the web server it will work (just like using your dev box).

to use impersonation you need to switch to kerberos (and enable
forwarding).

-- bruce (sqlwork.com)
Nick nkw wrote:
>I already following the steps in:
http://msdn.microsoft.com/library/de...edsecurity.asp
But I still get the error. I found it works when using VS.Net internal
web server. It use Domain\MachineName$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="true"/>)

Feb 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
14164
by: Toby Mathews | last post by:
Hi, In an ASP.Net application I want to convert open create a FileStream object from a System.Drawing.Image - is this possible? I create an instance of an Image object using the FromFile method,...
2
4558
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
0
4065
by: Ersin Gençtürk | last post by:
we are getting : System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period...
2
3337
by: micky | last post by:
i use database in app_Data ...*.mdf file not using sql server .. when i open the database file on visual studio 2005 there is error occur like below....
1
13008
by: weird0 | last post by:
System.Data.SqlClient.SqlException: An attempt to attach an auto- named database for file "Location" failed. A database with the same name exists, or specified file cannot be opened, or it is...
2
3946
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
3
24220
by: weird0 | last post by:
This is the exception that I get when i create a webserivce obj and call. The error comes on the webmethod call, when it opens a connection to the db. How do I fix it? What is the solution to...
2
2179
by: Carol | last post by:
Exception may be thrown in the code inside the try block. I want to handling the SqlException with State == 1 in a special way, and for all others I want to use a general way to handle. Which of...
1
2776
by: thithi | last post by:
Please help me " System.Data.SqlClient.SqlException: Prepared statement '(@Name varchar(100),@Describes varchar(100),@Money char(10))Upda' expects parameter @Describes, which was not supplied. at...
2
4708
by: lily86 | last post by:
i'm very new so i hope all of u can help me. when i debug my webforms this error occur "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional...
0
7080
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7140
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6811
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7209
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5403
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4841
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3044
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.