473,769 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1783
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*****@consul tel.com.au>
| Newsgroups: microsoft.publi c.dotnet.framew ork.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************ **********@g47g 2000cwa.googleg roups.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**********@go ogle.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**********@go ogle.com
| Injection-Info: g47g2000cwa.goo glegroups.com; posting-host=203.35.1.7 8;
| posting-account=xXGegQ0 AAAASqd3kHIG0Jd F6g4XfLq6S
| Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA03.phx.gbl!T K2MSFTNGP08.phx .gbl!newsfeed00 .
sul.t-online.de!t-online.de!borde r2.nntp.dca.gig anews.com!nntp. giganews.com!
postnews.google .com!g47g2000cw a.googlegroups. com!not-for-mail
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3498 89
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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*****@consul tel.com.au>
| Newsgroups: microsoft.publi c.dotnet.framew ork.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************ **********@g47g 2000cwa.googleg roups.com>
| References: <11************ **********@g47g 2000cwa.googleg roups.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**********@go ogle.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**********@go ogle.com
| Injection-Info: g47g2000cwa.goo glegroups.com; posting-host=203.35.1.7 8;
| posting-account=xXGegQ0 AAAASqd3kHIG0Jd F6g4XfLq6S
| Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA03.phx.gbl!T K2MSFTNGP08.phx .gbl!newsfeed00 .
sul.t-online.de!t-online.de!borde r2.nntp.dca.gig anews.com!nntp. giganews.com!
postnews.google .com!g47g2000cw a.googlegroups. com!not-for-mail
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3501 82
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
2779
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 can The function run O.K. But the deleted user is only realy deleted after I restart access I don't know how to refresh the main workspace with
6
2185
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, and phone number appears in some text boxes. When the dealer selects their dealer number I would like a password field or dialog box to appear. If the dealer enters the correct password then they will be able to see the warranty claims that...
3
3102
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
8
2216
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 out on my machine and had <deny users="?"/> how do I do this on the server to get the user NTLogin
4
2313
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 Password on my computer so that I don't have to enter it again. How is it that this standard dialog is displayed? Does the ASP (in my case C#) do this or does the Web Server do this and the ASP never knows about it? ...
6
1611
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 localhost returns an error. When it connects to the web server (my laptop) it prompts me for a user name and password. I enter my Windows password (since I'm the only user on the computer aside from the administrator) and it returns an error "The...
4
9533
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 disable the back button so to force the user to click a link so that hte page is refreshed. If anyone knows how to refresh on back button click or disable the back button please help me out.
1
3252
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 again to re-signup, however, i would like to remain all the correct infromation, and let users re-entered their NRIC. how can i do this. can i use Session, but it seems cant work. any one can help me? my code in signup page is like this: ...
1
2963
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 everything works fine. But if I select account: User, during the service installation process the dialog pops up where I have to key in user id and password, which is fine, but after that I'm getting the message: "An exception occurred during the...
0
9589
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...
0
9423
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,...
0
10045
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 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...
1
9994
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,...
1
7408
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
5298
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
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
3561
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.