473,406 Members | 2,356 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,406 software developers and data experts.

User name and password dialog refresh after 3 mins

Hi,

I have developed an ASP.NET application which has been running in
production for around 3 months without any major glitches. Recently, a
user was attempting to upload a rather large CSV file and ran into a
strange problem.

After roughly 3 minutes of processing, the application reprompted the
user for their user name and password (NT authentication). At this
point, the ASP.NET page re-fired the last event that it was processing.

For a bit of more detailed background on the process:

1 User chooses a CSV file to upload
2 User clicks "Upload" and the page reposts.
3 The page saves the CSV file and validates each record
4 Upon validating, the records are created as individual objects, and
added to an ArrayList
5 This ArrayList is then stored in Session.
6 The user clicks "Proceed with upload".
7 The page reposts and submits the records to a backend system via a
web service.
8 At around about 3 minutes, the user is repromted for their username
and password.

Upon investigation, this event occurs whilst the records are still
being processed. The remaining records are sent to the web service, but
then the web service calls begin again from the start, so the records
are added twice. The system is supposed to redirect the users to
another page once the upload has finished.

I have tested if it is the AppPool recycling and junking the Session
data, but it is not since I have set the recycle events to log in the
event log, but nothing appears.

Some other important info:

- Session timeout is 20 mins.
- Script timeouts 10 minutes
- Site uses SSL
- IIS 6.0 on Win Server 2003

Has anyone encountered this error before or get any tips of what might
be playing up?

Thanks in advance for any suggestions.

Cheers,

Rowan.

Nov 19 '05 #1
3 1768
Hi Funky,

Welcome to ASPNET newsgroup.
From your description, you are encountering some strange IIS authentication
and asp.net webservice calling behavior in your asp.net web application. As
you mentioned that the whole processing include two main steps:
1. Submit the CSV file to server and parsing the file to store data objects
in session.

2. resubmit the page and transfer the data objects to backend db through
webservice.

If there're anything I misunderstand, please feel free to let me know.

As for the
================
repromted for their username
and password.
================

I'd like to confirm some things:

* What's the authentication setting in your asp.net web.config and your
IIS's application virtual directory?

* Have you checked the IIS log to see whether the request records looks
normal for that page?

* Also, for the problem, is it occured only from a specific client and when
the CSV file's size is very large? I'd suggest you try perform the same
test through local machine ( do the same operation from the local IE client
on the IIS server machine) to
see whether the same problem remain.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
--------------------
| From: "Funky" <rm*****@consultel.com.au>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: User name and password dialog refresh after 3 mins
| Date: 11 Oct 2005 02:12:00 -0700
| Organization: http://groups.google.com
| Lines: 51
| Message-ID: <11**********************@g47g2000cwa.googlegroups .com>
| NNTP-Posting-Host: 203.35.1.78
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1129021925 6771 127.0.0.1 (11 Oct 2005
09:12:05 GMT)
| X-Complaints-To: gr**********@google.com
| NNTP-Posting-Date: Tue, 11 Oct 2005 09:12:05 +0000 (UTC)
| User-Agent: G2/0.2
| X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
| X-HTTP-Via: 1.0 TDCPRX001
| Complaints-To: gr**********@google.com
| Injection-Info: g47g2000cwa.googlegroups.com; posting-host=203.35.1.78;
| posting-account=xXGegQ0AAAASqd3kHIG0JdF6g4XfLq6S
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSF TNGP08.phx.gbl!newsfeed00.
sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.gigan ews.com!
postnews.google.com!g47g2000cwa.googlegroups.com!n ot-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:349889
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I have developed an ASP.NET application which has been running in
| production for around 3 months without any major glitches. Recently, a
| user was attempting to upload a rather large CSV file and ran into a
| strange problem.
|
| After roughly 3 minutes of processing, the application reprompted the
| user for their user name and password (NT authentication). At this
| point, the ASP.NET page re-fired the last event that it was processing.
|
| For a bit of more detailed background on the process:
|
| 1 User chooses a CSV file to upload
| 2 User clicks "Upload" and the page reposts.
| 3 The page saves the CSV file and validates each record
| 4 Upon validating, the records are created as individual objects, and
| added to an ArrayList
| 5 This ArrayList is then stored in Session.
| 6 The user clicks "Proceed with upload".
| 7 The page reposts and submits the records to a backend system via a
| web service.
| 8 At around about 3 minutes, the user is repromted for their username
| and password.
|
| Upon investigation, this event occurs whilst the records are still
| being processed. The remaining records are sent to the web service, but
| then the web service calls begin again from the start, so the records
| are added twice. The system is supposed to redirect the users to
| another page once the upload has finished.
|
| I have tested if it is the AppPool recycling and junking the Session
| data, but it is not since I have set the recycle events to log in the
| event log, but nothing appears.
|
| Some other important info:
|
| - Session timeout is 20 mins.
| - Script timeouts 10 minutes
| - Site uses SSL
| - IIS 6.0 on Win Server 2003
|
| Has anyone encountered this error before or get any tips of what might
| be playing up?
|
| Thanks in advance for any suggestions.
|
| Cheers,
|
| Rowan.
|
|

Nov 19 '05 #2
Hi Steven,

Thanks for the reply.

Since I posted this I have tested the issue a whole lot further and
resolved that the issue lies not with the application - but with the
ISA proxy server. Bascially the upload works fine when the site is NOT
accessed via the proxy server, but stuffs up when it IS run through the
proxy server.

Wierd behaviour I know. One of the network guys thinks it might be
something to do with Proxy exclusions or something (I'm not familiar
with ISA that much).

To answer your questions anyway:

The authentication in web.config is set to Windows, whilst IIS is set
to NT Integrated with Basic authentication. I noticed something
interesting during testing this morning too. If I turn off NT
Integrated authentication and leave Basic authentication on then the
authentication dialog doesn't reappear, but the "re-post" still occurs
in the background without the users knowledge!

What led us to the proxy issue was that the site worked fine on an
identical test server, but not on the production server. Once we
removed the proxy settings from our browsers, the site worked fine for
the Production server (where the original issue was).

In the interim, we can get around the issue by introducing a Session
variable flag that is set to True when it begins the web service calls,
and is set to False when it displays the confirmation page. If the
submit event occurs again, it detects a True value for the Session
variable and automatically redirects to the confirmation page.

I'll post up the resolution (hopefully there is one) in relation to
proxy server when the network guys get back to me.

Thanks again for the help.

Cheers,

Rowan.

Nov 19 '05 #3
Thanks for your quick followup Funky,

Glad that you've found the cause of the problem. IF there're any further
finding or anything else
we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Funky" <rm*****@consultel.com.au>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: User name and password dialog refresh after 3 mins
| Date: 11 Oct 2005 21:00:22 -0700
| Organization: http://groups.google.com
| Lines: 43
| Message-ID: <11**********************@g47g2000cwa.googlegroups .com>
| References: <11**********************@g47g2000cwa.googlegroups .com>
| <Wy*************@TK2MSFTNGXA02.phx.gbl>
| NNTP-Posting-Host: 203.35.1.78
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1129089627 22490 127.0.0.1 (12 Oct 2005
04:00:27 GMT)
| X-Complaints-To: gr**********@google.com
| NNTP-Posting-Date: Wed, 12 Oct 2005 04:00:27 +0000 (UTC)
| User-Agent: G2/0.2
| X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
| X-HTTP-Via: 1.0 TDCPRX001
| Complaints-To: gr**********@google.com
| Injection-Info: g47g2000cwa.googlegroups.com; posting-host=203.35.1.78;
| posting-account=xXGegQ0AAAASqd3kHIG0JdF6g4XfLq6S
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSF TNGP08.phx.gbl!newsfeed00.
sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.gigan ews.com!
postnews.google.com!g47g2000cwa.googlegroups.com!n ot-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:350182
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven,
|
| Thanks for the reply.
|
| Since I posted this I have tested the issue a whole lot further and
| resolved that the issue lies not with the application - but with the
| ISA proxy server. Bascially the upload works fine when the site is NOT
| accessed via the proxy server, but stuffs up when it IS run through the
| proxy server.
|
| Wierd behaviour I know. One of the network guys thinks it might be
| something to do with Proxy exclusions or something (I'm not familiar
| with ISA that much).
|
| To answer your questions anyway:
|
| The authentication in web.config is set to Windows, whilst IIS is set
| to NT Integrated with Basic authentication. I noticed something
| interesting during testing this morning too. If I turn off NT
| Integrated authentication and leave Basic authentication on then the
| authentication dialog doesn't reappear, but the "re-post" still occurs
| in the background without the users knowledge!
|
| What led us to the proxy issue was that the site worked fine on an
| identical test server, but not on the production server. Once we
| removed the proxy settings from our browsers, the site worked fine for
| the Production server (where the original issue was).
|
| In the interim, we can get around the issue by introducing a Session
| variable flag that is set to True when it begins the web service calls,
| and is set to False when it displays the confirmation page. If the
| submit event occurs again, it detects a True value for the Session
| variable and automatically redirects to the confirmation page.
|
| I'll post up the resolution (hopefully there is one) in relation to
| proxy server when the network guys get back to me.
|
| Thanks again for the help.
|
| Cheers,
|
| Rowan.
|
|

Nov 19 '05 #4

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

Similar topics

2
by: Doron | last post by:
Hi all I need to Delete a user from a database open with user that do not have permision to do so I have created a function that will create new workspace with UserName and Password of one that...
6
by: \Shannan Casteel via AccessMonster.com\ | last post by:
I have a database for warranty claims. There is one form based on one large table. The first object is a combo box asking for dealer number. When that field is updated the dealers name, address,...
3
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...
8
by: Joe | last post by:
I check for the NTLogin of a user by Page.User.Identity.Name, but when I put the app on the server the value for Page.User.Identity.Name is "" I had the <allow users="*/> attribute commented...
4
by: Zachary Hilbun | last post by:
I need to write an ASP that requires a user to give a User Name and Password to run it. Whenever I've used this on the Web it displays a standard dialog and then offers to save the User Name and...
6
by: Jozef | last post by:
Hello, I've set up VS2003 on my laptop which is running Win XP pro in a stand alone situation, no domain or dc. When I try and "Create a blank solution", I use the Laptop IP address since...
4
by: morc | last post by:
hi, is there any way to refresh the page when the user clicks back button?I have a jsp page that i need to regerenate everything everytime the user visits it. its either that or i want to...
1
by: kang jia | last post by:
hi when user entered particulars in signuppage and click" signup" button, i will direct them to do_signup.php. if say the NRIC is dupicate in datebase, i will redirect them back to signup page...
1
by: Alex | last post by:
Hi everybody Is creating of the service, which must be ran under the "user account" something really tricky? I mean if in ServiceProcessInstaller properties I'm using account: Local System...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
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...
0
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,...

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.