Hi,
I have tried to keep things simple. Not simple enough, obviously.
I have a set of intranet ASP.NET pages which access a SQL back-end
through the normal SQLConnection stuff. I want to use peoples' NT
logons to user-stamp data changes made through the web-pages. So it
seemed obvious to use Windows authentication to access SQL
connections.
On my development box (running ASP.NET 1.1, with Anonymous Login
disabled and Windows authentication) , my pages work fine.
I have copied all the files over to a development web server (did I
need to compile them on the web server? - I guessed not). This web
server has the same web site setup, with Anonymous Login disabled, and
Windows authentication.
On both boxes I have set impersonate="tr ue" in the web.config.
The whole lot is using Windows 2000 (server on the test server), with
sp3. The SQL box is also W2k with sp3, and all are on the same
network.
If I start up the web pages from my development box, and access the
pages on the test server, I get access problems when opening SQL
connections:
Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'
Stack trace (for those who want to see it):
*************** *************** *************** *************** ******
[SqlException: Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.]
System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean&
isInTransaction ) +474
System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne ctionString
options, Boolean& isInTransaction ) +372
System.Data.Sql Client.SqlConne ction.Open() +384
BusinessPlans.R eference.GetSel ectSQL(String p_ConnStr, String
p_SPName, String p_TableName, String p_ResultParamNa me) +66
BusinessPlans.R eference.Popula teDataGrids(Boo lean p_ApplyMask,
Boolean p_AddNewItem) +521
BusinessPlans.R eference.ShowTa ble(Object sender, CommandEventArg s e)
+74
System.Web.UI.W ebControls.Link Button.OnComman d(CommandEventA rgs e)
+110
System.Web.UI.W ebControls.Link Button.System.W eb.UI.IPostBack EventHandler.Ra isePostBackEven t(String
eventArgument) +115
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
+138
System.Web.UI.P age.ProcessRequ estMain() +1277
*************** *************** *************** *************** ******
BUT...
in the same session I have the following set up as well:
Authentication name=MyDomain\M yLogin,
Authentication type=NTLM
Authentication passed=True
I don't see what I'm doing wrong here.
BUT...
things get even wierder when I access the pages from the test server
itself. They all work OK, and if I immediately go back and try to
access them from my development box again, they work fine!
!!!!
What is going on? The errors return if I leave the connections for a
number of minutes (presumably because the connections/sessions
time-out), the errors return. Is it failing to set up a pooled
connection on the remote server (and if so, why?) or is it something
even more obscure?
Help!
Any help would be most gratefully received.
Mike. 3 3480
this scenario will not work, as any search of this newsgroup will tell you.
you can not forward nt creditals. you have three choices
1) switch to a credital format that will forward, by using basic or digest
authentication.
2) put the sql server on the same box as the web server (no forwarding
required)
3) fill in the username and password in the web config, and pass in the user
credials though another method to the sqlserver.
for more details, google this newsgroup.
-- bruce (sqlwork.com)
"Mike Hutton" <hu************ @hotmail.com> wrote in message
news:70******** *************** ***@posting.goo gle.com... Hi,
I have tried to keep things simple. Not simple enough, obviously.
I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use peoples' NT logons to user-stamp data changes made through the web-pages. So it seemed obvious to use Windows authentication to access SQL connections.
On my development box (running ASP.NET 1.1, with Anonymous Login disabled and Windows authentication) , my pages work fine.
I have copied all the files over to a development web server (did I need to compile them on the web server? - I guessed not). This web server has the same web site setup, with Anonymous Login disabled, and Windows authentication.
On both boxes I have set impersonate="tr ue" in the web.config.
The whole lot is using Windows 2000 (server on the test server), with sp3. The SQL box is also W2k with sp3, and all are on the same network. If I start up the web pages from my development box, and access the pages on the test server, I get access problems when opening SQL connections:
Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'
Stack trace (for those who want to see it): *************** *************** *************** *************** ****** [SqlException: Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.] System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean& isInTransaction ) +474
System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne c
tionString options, Boolean& isInTransaction ) +372 System.Data.Sql Client.SqlConne ction.Open() +384 BusinessPlans.R eference.GetSel ectSQL(String p_ConnStr, String p_SPName, String p_TableName, String p_ResultParamNa me) +66 BusinessPlans.R eference.Popula teDataGrids(Boo lean p_ApplyMask, Boolean p_AddNewItem) +521 BusinessPlans.R eference.ShowTa ble(Object sender, CommandEventArg s e) +74 System.Web.UI.W ebControls.Link Button.OnComman d(CommandEventA rgs e) +110
System.Web.UI.W ebControls.Link Button.System.W eb.UI.IPostBack EventHandler.Ra i
sePostBackEvent (String eventArgument) +115 System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18 System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +138 System.Web.UI.P age.ProcessRequ estMain() +1277 *************** *************** *************** *************** ******
BUT...
in the same session I have the following set up as well:
Authentication name=MyDomain\M yLogin, Authentication type=NTLM Authentication passed=True
I don't see what I'm doing wrong here.
BUT...
things get even wierder when I access the pages from the test server itself. They all work OK, and if I immediately go back and try to access them from my development box again, they work fine!
!!!!
What is going on? The errors return if I leave the connections for a number of minutes (presumably because the connections/sessions time-out), the errors return. Is it failing to set up a pooled connection on the remote server (and if so, why?) or is it something even more obscure?
Help!
Any help would be most gratefully received.
Mike.
this scenario will not work, as any search of this newsgroup will tell you.
you can not forward nt creditals. you have three choices
1) switch to a credital format that will forward, by using basic or digest
authentication.
2) put the sql server on the same box as the web server (no forwarding
required)
3) fill in the username and password in the web config, and pass in the user
credials though another method to the sqlserver.
for more details, google this newsgroup.
-- bruce (sqlwork.com)
"Mike Hutton" <hu************ @hotmail.com> wrote in message
news:70******** *************** ***@posting.goo gle.com... Hi,
I have tried to keep things simple. Not simple enough, obviously.
I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use peoples' NT logons to user-stamp data changes made through the web-pages. So it seemed obvious to use Windows authentication to access SQL connections.
On my development box (running ASP.NET 1.1, with Anonymous Login disabled and Windows authentication) , my pages work fine.
I have copied all the files over to a development web server (did I need to compile them on the web server? - I guessed not). This web server has the same web site setup, with Anonymous Login disabled, and Windows authentication.
On both boxes I have set impersonate="tr ue" in the web.config.
The whole lot is using Windows 2000 (server on the test server), with sp3. The SQL box is also W2k with sp3, and all are on the same network. If I start up the web pages from my development box, and access the pages on the test server, I get access problems when opening SQL connections:
Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'
Stack trace (for those who want to see it): *************** *************** *************** *************** ****** [SqlException: Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.] System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean& isInTransaction ) +474
System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne c
tionString options, Boolean& isInTransaction ) +372 System.Data.Sql Client.SqlConne ction.Open() +384 BusinessPlans.R eference.GetSel ectSQL(String p_ConnStr, String p_SPName, String p_TableName, String p_ResultParamNa me) +66 BusinessPlans.R eference.Popula teDataGrids(Boo lean p_ApplyMask, Boolean p_AddNewItem) +521 BusinessPlans.R eference.ShowTa ble(Object sender, CommandEventArg s e) +74 System.Web.UI.W ebControls.Link Button.OnComman d(CommandEventA rgs e) +110
System.Web.UI.W ebControls.Link Button.System.W eb.UI.IPostBack EventHandler.Ra i
sePostBackEvent (String eventArgument) +115 System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18 System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +138 System.Web.UI.P age.ProcessRequ estMain() +1277 *************** *************** *************** *************** ******
BUT...
in the same session I have the following set up as well:
Authentication name=MyDomain\M yLogin, Authentication type=NTLM Authentication passed=True
I don't see what I'm doing wrong here.
BUT...
things get even wierder when I access the pages from the test server itself. They all work OK, and if I immediately go back and try to access them from my development box again, they work fine!
!!!!
What is going on? The errors return if I leave the connections for a number of minutes (presumably because the connections/sessions time-out), the errors return. Is it failing to set up a pooled connection on the remote server (and if so, why?) or is it something even more obscure?
Help!
Any help would be most gratefully received.
Mike.
Actually, the scenario does work. I've been experiencing the exact
same problem. I spent a couple of hours last night reading through
various news group postings which all have different answers, though
none really seem to work consistently. I've gotta tell you that "any
search of this newsgroup" will not tell you that you can't forward NT
credentials. Some do, most don't. With that said, I do understand
forwarding of credentials to be impossible, but what Mike reported in
the original post is exactly what I've experienced so there's got to
be something else in play.
Mike, did you ever find a solution?
"bruce barker" <no***********@ safeco.com> wrote in message news:<Oo******* *******@TK2MSFT NGP11.phx.gbl>. .. this scenario will not work, as any search of this newsgroup will tell you. you can not forward nt creditals. you have three choices
1) switch to a credital format that will forward, by using basic or digest authentication. 2) put the sql server on the same box as the web server (no forwarding required) 3) fill in the username and password in the web config, and pass in the user credials though another method to the sqlserver.
for more details, google this newsgroup.
-- bruce (sqlwork.com)
"Mike Hutton" <hu************ @hotmail.com> wrote in message news:70******** *************** ***@posting.goo gle.com... Hi,
I have tried to keep things simple. Not simple enough, obviously.
I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use peoples' NT logons to user-stamp data changes made through the web-pages. So it seemed obvious to use Windows authentication to access SQL connections.
On my development box (running ASP.NET 1.1, with Anonymous Login disabled and Windows authentication) , my pages work fine.
I have copied all the files over to a development web server (did I need to compile them on the web server? - I guessed not). This web server has the same web site setup, with Anonymous Login disabled, and Windows authentication.
On both boxes I have set impersonate="tr ue" in the web.config.
The whole lot is using Windows 2000 (server on the test server), with sp3. The SQL box is also W2k with sp3, and all are on the same network. If I start up the web pages from my development box, and access the pages on the test server, I get access problems when opening SQL connections:
Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'
Stack trace (for those who want to see it): *************** *************** *************** *************** ****** [SqlException: Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.] System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean& isInTransaction ) +474 System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne c tionString options, Boolean& isInTransaction ) +372 System.Data.Sql Client.SqlConne ction.Open() +384 BusinessPlans.R eference.GetSel ectSQL(String p_ConnStr, String p_SPName, String p_TableName, String p_ResultParamNa me) +66 BusinessPlans.R eference.Popula teDataGrids(Boo lean p_ApplyMask, Boolean p_AddNewItem) +521 BusinessPlans.R eference.ShowTa ble(Object sender, CommandEventArg s e) +74 System.Web.UI.W ebControls.Link Button.OnComman d(CommandEventA rgs e) +110 System.Web.UI.W ebControls.Link Button.System.W eb.UI.IPostBack EventHandler.Ra i sePostBackEvent (String eventArgument) +115 System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18 System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +138 System.Web.UI.P age.ProcessRequ estMain() +1277 *************** *************** *************** *************** ******
BUT...
in the same session I have the following set up as well:
Authentication name=MyDomain\M yLogin, Authentication type=NTLM Authentication passed=True
I don't see what I'm doing wrong here.
BUT...
things get even wierder when I access the pages from the test server itself. They all work OK, and if I immediately go back and try to access them from my development box again, they work fine!
!!!!
What is going on? The errors return if I leave the connections for a number of minutes (presumably because the connections/sessions time-out), the errors return. Is it failing to set up a pooled connection on the remote server (and if so, why?) or is it something even more obscure?
Help!
Any help would be most gratefully received.
Mike. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stanley J, Mroczek |
last post by:
My disk was replaced and i reload all my software. I think that i named my
computer best-si-01 instead of BEST-SI-01 and thats my error?
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
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:...
|
by: John J. Hughes II |
last post by:
I have "Computer A" which is running Win2K3 and MS SQL server. And
"Computer B" which is running a service that I have created. If I change
the service on "Computer B" to run as a user my program is able to connect
to the SQL server on "Computer A" correctly. But if I set the service on
"Computer B" to run as a local system then I get an error connecting to the
SQL on "Computer A" --- "NT AUTHORITY\ANONYMOUS LOGON". I understand why I...
|
by: Mike Hutton |
last post by:
Hi,
I have tried to keep things simple. Not simple enough, obviously.
I have a set of intranet ASP.NET pages which access a SQL back-end
through the normal SQLConnection stuff. I want to use peoples' NT
logons to user-stamp data changes made through the web-pages. So it
seemed obvious to use Windows authentication to access SQL
connections.
|
by: Ibrahim Mohamed El-Ganady |
last post by:
Mr :
I have proplem with Visual stdio 2003 and Windows2003
Enterprise Server , when I developed web application
using ASP.Net (VB) that establish connection to SQL Server
database the following error appeared.
Server Error in '/WebApplication1' Application.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
|
by: Maellic |
last post by:
Hi,
The website I am working on is built with ASP.NET and connects to a
SQL Server 2000 database. The web server and database are on the same
machine. I have recently tried to modify the timeout of the website
from 20 mn to 60 mn. I changed the timeout setting in IIS. Now the
website itself doesn't time out, however after 20 mn, when I try to
access a page that needs to connect to the database, I get the
following error message
| |
by: et |
last post by:
I have an asp.net program that uses a connection string, using integrated
security to connect to a sql database. It runs fine on one server, but the
other server gives me the error that
"Login failed for user "NT AUTHORITY/ANONYMOUS LOGON". Why would this be?
There is no reason it should even be trying to login to using NT
Authority/Anonymous login. The IIS Server is set to turn off anonymous
logins, and use integrated security, and my...
|
by: Buggyman |
last post by:
Hi,
I'm having problems with good old error... Login failed for user 'NT
Authority\Anonymous logon'.
The default web page comes up fine, but when the user attempts to log in
(which checks stored usernames in the database etc) then the error occurs.
a) The Web server is on a seperate box to SQL Server.
b) I'm using forms authentication.
c) I've enabled anonymous access, setting it to the correct domain account,
|
by: Adnan Al-Ghourabi |
last post by:
Hi,
We have an application running on IIS 6.0, on a windows 2003 box. The
back-end database, a SQL Server 2000, runs on anohter server, windows 2000.
We have enabled integrated authentication, and provided the windows account
the appropriate permissions in SQL Server.
If running the application locally on the server, the user authenticates
fine. When accessing the application remotely, a SQL exception, "Login failed
|
by: gderosa |
last post by:
I have been getting that dreaded error in my application:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
I have had my application in the test environment, impersonating it using a superuser domain account and setting proper permissions in both IIS and setting up the user in SQL Server.
Now I moved my application to the production enviroment with the same exact settings as my test environment, and I am getting the "Login failed for...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |