473,725 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

website connection to database time out problem : login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'

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

*************** *************** *************** *************** *************** ***************
Form Request:
ASP Code:
Error Number: -2147217843
ASP Source:
Error Category: Microsoft OLE DB Provider for SQL Server
File: /emissionsestima tion/includes/db.asp
Line: 13
Description: Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.
ASP Description:
Date: 1/13/2004 9:26:08 AM
*************** *************** *************** *************** *************** *************** **

If I access a page that doesn't connect to the database, it works
fine.

My connection string to the database is:
"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*;User
Id=*USER_ID*;Pa ssword=*PASSWOR D*;Initial
Catalog=Emissio nEstimations;Tr usted_Connectio n=yes;"

The connection to the database works fine unless the website is idle
for 20 mn. After 60 mn, I get the time out message I expected. So the
"login failed for user" message only happens if the application is
left idle between 20 mn and 60 mn.

Maybe the database has some kind of timeout setting that needs to be
modified as well? However why the "login failed" message ? Why this
user "ANONYMOUS" ? I'm kinda confused and I'd appreciate some help
onto why this happens and what to do about it.

Thanks heaps

Maelle
Nov 18 '05 #1
3 3101
you are using trusted connection and are also specifying the user name
password... that is why when the db connection fails you get
Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.

first remove the trusted connection... that should make that error go off...
as to why it happens after 20 mins... i am not sure...

your connection should look like this

"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*;User
Id=*USER_ID*;Pa ssword=*PASSWOR D*;Initial
Catalog=Emissio nEstimations;"

or

"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*;User
Initial Catalog=Emissio nEstimations;Tr usted_Connectio n=yes;"

Second thing.. if you are using ASP.NET and are using Sql 2000 consider
using SqlClient namespace instead of OleDb
sqlclient is more efficient way ...

--
Regards,

HD

"Maellic" <ma*********@ya hoo.fr> wrote in message
news:15******** *************** ***@posting.goo gle.com...
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

*************** *************** *************** *************** *************** *
************** Form Request:
ASP Code:
Error Number: -2147217843
ASP Source:
Error Category: Microsoft OLE DB Provider for SQL Server
File: /emissionsestima tion/includes/db.asp
Line: 13
Description: Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.
ASP Description:
Date: 1/13/2004 9:26:08 AM
*************** *************** *************** *************** *************** *
*************** *
If I access a page that doesn't connect to the database, it works
fine.

My connection string to the database is:
"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*;User
Id=*USER_ID*;Pa ssword=*PASSWOR D*;Initial
Catalog=Emissio nEstimations;Tr usted_Connectio n=yes;"

The connection to the database works fine unless the website is idle
for 20 mn. After 60 mn, I get the time out message I expected. So the
"login failed for user" message only happens if the application is
left idle between 20 mn and 60 mn.

Maybe the database has some kind of timeout setting that needs to be
modified as well? However why the "login failed" message ? Why this
user "ANONYMOUS" ? I'm kinda confused and I'd appreciate some help
onto why this happens and what to do about it.

Thanks heaps

Maelle

Nov 18 '05 #2
sorry the second connection string using trusted connection should look
something like this

"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*; Initial
Catalog=Emissio nEstimations;Tr usted_Connectio n=yes;"
--
Regards,

HD

"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
you are using trusted connection and are also specifying the user name
password... that is why when the db connection fails you get
Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.

first remove the trusted connection... that should make that error go off... as to why it happens after 20 mins... i am not sure...

your connection should look like this

"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*;User
Id=*USER_ID*;Pa ssword=*PASSWOR D*;Initial
Catalog=Emissio nEstimations;"

or

"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*;User
Initial Catalog=Emissio nEstimations;Tr usted_Connectio n=yes;"

Second thing.. if you are using ASP.NET and are using Sql 2000 consider
using SqlClient namespace instead of OleDb
sqlclient is more efficient way ...

--
Regards,

HD

"Maellic" <ma*********@ya hoo.fr> wrote in message
news:15******** *************** ***@posting.goo gle.com...
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

*************** *************** *************** *************** *************** * **************
Form Request:
ASP Code:
Error Number: -2147217843
ASP Source:
Error Category: Microsoft OLE DB Provider for SQL Server
File: /emissionsestima tion/includes/db.asp
Line: 13
Description: Login failed for user 'NT AUTHORITY\ANONY MOUS LOGON'.
ASP Description:
Date: 1/13/2004 9:26:08 AM

*************** *************** *************** *************** *************** * *************** *

If I access a page that doesn't connect to the database, it works
fine.

My connection string to the database is:
"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*;User
Id=*USER_ID*;Pa ssword=*PASSWOR D*;Initial
Catalog=Emissio nEstimations;Tr usted_Connectio n=yes;"

The connection to the database works fine unless the website is idle
for 20 mn. After 60 mn, I get the time out message I expected. So the
"login failed for user" message only happens if the application is
left idle between 20 mn and 60 mn.

Maybe the database has some kind of timeout setting that needs to be
modified as well? However why the "login failed" message ? Why this
user "ANONYMOUS" ? I'm kinda confused and I'd appreciate some help
onto why this happens and what to do about it.

Thanks heaps

Maelle


Nov 18 '05 #3
"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message news:<e5******* ******@TK2MSFTN GP10.phx.gbl>.. .
sorry the second connection string using trusted connection should look
something like this

"PROVIDER=SQLOL EDB;Data Source=*IP_ADRE SS*; Initial
Catalog=Emissio nEstimations;Tr usted_Connectio n=yes;"

Thanks a lot, I'll try that and see... Hopefully it'll fix my problem
although the timeout thing is weird.

Second thing.. if you are using ASP.NET and are using Sql 2000 consider
using SqlClient namespace instead of OleDb
sqlclient is more efficient way ...


I'll look into it. If you know of any good websites that explain the
difference between both, I'd appreciate your pointers, otherwise I'll
just google it.

Thanks for your help

Maelle
Nov 18 '05 #4

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

Similar topics

0
1636
by: Pierre Semaan | last post by:
Hey Guys, I have inherited an evil app that I am trying to fix. It is a VB6 desktop app, that I am trying to port to the web using VB6/com+/ASP with a sql server 2000 db. Well, up until now, everything has been good. That is, until I tried to port the "add invoice" piece over to the web. That is when I get the "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'" error. The database has Mixed Mode authentication set up, and the...
1
394
by: Ron L | last post by:
I am trying to setup a solution that will include a client which will access a database via remoting calls. I am hosting my remoting project in IIS, and am using Windows Integrated security. Since some of my users will be coming in through the web (from non-trusted domains) to log into their local domain account, I am trying to implement a login screen which will gather the user data (login, pwd, domain). The login screen will be...
1
1288
by: rl30 | last post by:
ASP.NET vs SQL Server¸ I have an ASP.NET Application In IIS I checked the Integrated Windows Authentication option In Web.Config the connection string include Integrated Security = SSPI and Impersonate=true in Web.Config
4
7227
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet user account (with same password as aspnet user on IIS (Devweb01)) 2) edited local machine.config file <ProcessModel> Password attribute to same password (both on IIS and SQL Machine) 3) SQL Server security is Sql Server and Windows
4
1829
by: Chuck Bowling | last post by:
I'm having a problem that i really don't understand. I'm new to ASP.NET and to SQL Server (MSDE). I'm trying to get a VS walkthru in the C# to work. I think the problem is permissions but I'm not sure. I've tried adding the ZEUS\ASPNET user to the server using osql with the command "EXEC sp_grantlogin 'ZEUS\ASPNET'" but it had no apparent effect. Below is the error page that was generated when I tried to build and run the site: ...
2
3362
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'. ============================================================ and ... when i access website that using the database visual studio 2005...
1
6605
by: Srinivas Chintakindi | last post by:
Hi All, I am developing one ASP.NET 2.0 application in which user test the remote sql server existance. User enters remote sql server name, data base name, authentication mode, user name, password. I am making the connection string based on the authentication mode. If it is integrated authentication my connection string would be as below. try {
4
12089
by: eruth | last post by:
There are loads of post on this, but nothing that seems to cover my exact problem ;) I have an ASP.Net 1.1 web application running on my local machine. I want to connect to an SQL 2005 server running on Windows 2003. If I use SQL authentication, all is fine and dandy. If I want to use windows authentication it gives the above error. My SQL server is set to allow both methods (first thing I checked) and is part of the domain (2nd...
1
1616
by: NannMaw | last post by:
Hi,good evening all. I am a beginner in web development and SQL server. I got the below error when running the web application on development server of MS visual studio 2005. I guess that this error may concern with the SQL server configuration.Is there anyone who can offer a hand to me? Please let me know the work around to solve the problem. Thanks in advance.
0
8889
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9179
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,...
0
8099
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
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 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...
0
6011
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
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...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
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
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.