473,549 Members | 2,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Data.Sql Client.SqlExcep tion: Login failed for user 'NT AUTHORITY\ANONY MOUSLOGON'

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\MachineN ame$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="tr ue"/>)
Feb 23 '07 #1
3 6235
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\MachineN ame$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="tr ue"/>)
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="tr ue"/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\MachineN ame$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="tr ue"/>)
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******** *****@TK2MSFTNG P04.phx.gbl...
you will notice, that if you connect to your dev box from another machine
it won't work with <identity impersonate="tr ue"/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\MachineN ame$ to connect SQL Server after
publish to IIS. (It works on IIS after I remove <identity
impersonate="t rue"/>)

Feb 24 '07 #4

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

Similar topics

7
14186
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, then use the GetThumbnailImage method to create a second Image. This second one is the one I want to get a FileStream from, so that I can then use...
2
4565
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 Here's the scenario: 1. .NET Windows Client on a remote machine makes a web service call to update tables on a Web Server running SQL Server...
0
4076
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 elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior...
2
3345
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. =========================================================== Cannot open user default database. Login failed. Login failed for user 'NT AUTHORITY\SYSTEM'....
1
13021
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 located on UNC share. I am getting the above the exception while connecting to the db and i have written a web-service... i.e. a webmethod. What...
2
3963
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: D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>asant database Buildfile: build.xml env-user: prop-user: set-user:
3
24226
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 this? System.Web.Services.Protocols.SoapException: Server was unable to process request. ---System.Data.SqlClient.SqlException: An attempt to...
2
2188
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 the following options is better? ----------------------------------------------------- Option 1: try{...} catch (System.Data.SqlClient.SqlException...
1
2784
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 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at...
2
4717
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 information: System error." pls help me solve the problem...thanks.. my code: Imports System.Data.SqlClient Imports System.Data.OleDb Imports...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.