473,395 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

website connection to database time out problem : login failed for user 'NT AUTHORITY\ANONYMOUS 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: /emissionsestimation/includes/db.asp
Line: 13
Description: Login failed for user 'NT AUTHORITY\ANONYMOUS 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=SQLOLEDB;Data Source=*IP_ADRESS*;User
Id=*USER_ID*;Password=*PASSWORD*;Initial
Catalog=EmissionEstimations;Trusted_Connection=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 3073
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\ANONYMOUS 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=SQLOLEDB;Data Source=*IP_ADRESS*;User
Id=*USER_ID*;Password=*PASSWORD*;Initial
Catalog=EmissionEstimations;"

or

"PROVIDER=SQLOLEDB;Data Source=*IP_ADRESS*;User
Initial Catalog=EmissionEstimations;Trusted_Connection=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*********@yahoo.fr> wrote in message
news:15**************************@posting.google.c om...
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: /emissionsestimation/includes/db.asp
Line: 13
Description: Login failed for user 'NT AUTHORITY\ANONYMOUS 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=SQLOLEDB;Data Source=*IP_ADRESS*;User
Id=*USER_ID*;Password=*PASSWORD*;Initial
Catalog=EmissionEstimations;Trusted_Connection=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=SQLOLEDB;Data Source=*IP_ADRESS*; Initial
Catalog=EmissionEstimations;Trusted_Connection=yes ;"
--
Regards,

HD

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.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\ANONYMOUS 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=SQLOLEDB;Data Source=*IP_ADRESS*;User
Id=*USER_ID*;Password=*PASSWORD*;Initial
Catalog=EmissionEstimations;"

or

"PROVIDER=SQLOLEDB;Data Source=*IP_ADRESS*;User
Initial Catalog=EmissionEstimations;Trusted_Connection=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*********@yahoo.fr> wrote in message
news:15**************************@posting.google.c om...
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: /emissionsestimation/includes/db.asp
Line: 13
Description: Login failed for user 'NT AUTHORITY\ANONYMOUS 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=SQLOLEDB;Data Source=*IP_ADRESS*;User
Id=*USER_ID*;Password=*PASSWORD*;Initial
Catalog=EmissionEstimations;Trusted_Connection=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*************@TK2MSFTNGP10.phx.gbl>...
sorry the second connection string using trusted connection should look
something like this

"PROVIDER=SQLOLEDB;Data Source=*IP_ADRESS*; Initial
Catalog=EmissionEstimations;Trusted_Connection=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
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,...
1
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. ...
1
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...
4
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...
4
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...
2
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
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,...
4
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...

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.