473,472 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Clients Losing Session

I would appreciate it if anybody can help with a issue I am having in an
ASP.NET application that is timing out before a process has been completed.

The scenario
ASP.NET application under IIS 5 runs a crystal report (which has a lot of
complex formatting) and returns over 6,000 pages. The time to export this
report to PDF using Crystal Reports Directly on the server is 83 minutes.
But when the export to PDF is done through the Web Application at exactly 60
minutes the session terminates. The web application returns the user to the
login page (using custom authentication) logged out. In an older version of
this web application the same report at exactly 60 minutes returns a “Page
Not Found” Error or “Server Application Not Available”. This version was not
using any Authentication. I need to increase the time to about 90 minutes or
later so the user will be able to get the completed PDF file.

Details
IIS has the connection timeout at 900 seconds (or 15 minutes) and ASP.NET
session timeout to 20 minutes. Both the Web.Config and the Machine.Config has
the session timeout at 20 minutes.
But as I understand this, these values are used only when the session /
application has been idle for this amount of time. There has to be another
setting that controls the amount of time the user can stay logged into a
given session or the amount of time a user can stay connected to the server
(For 60 minutes as demonstrated by the behavior).
I’m not changing any of the session properties in code.
There are no error log messages.
In addition to this when the session terminates for the user. If I monitor
the ASP.NET Worker Process thread that is performing the export it continues
to run until the export has been completed.
Web.Config
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

Machine.Config
<processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="SYSTEM" password="AutoGenerate"
logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00" maxWorkerThreads="20" maxIoThreads="20"/>

I’ve looked everywhere I can think of for this timeout configuration. Can
somebody please help with an idea of where else to look for the timeout
setting.or what I can do in code to prevent the session from terminating
before the process has terminated.
Thank You for your help ahead of time.

Nov 19 '05 #1
4 2124
the browser will also timeout. you can not control this. your approach is
wrong. you should start a background thread (probably a pool) to build the
report, then have the page poll for the results.

-- bruce (sqlwork.com)
"JIsenstadt" <JI********@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
| I would appreciate it if anybody can help with a issue I am having in an
| ASP.NET application that is timing out before a process has been
completed.
|
| The scenario
| ASP.NET application under IIS 5 runs a crystal report (which has a lot of
| complex formatting) and returns over 6,000 pages. The time to export this
| report to PDF using Crystal Reports Directly on the server is 83 minutes.
| But when the export to PDF is done through the Web Application at exactly
60
| minutes the session terminates. The web application returns the user to
the
| login page (using custom authentication) logged out. In an older version
of
| this web application the same report at exactly 60 minutes returns a "Page
| Not Found" Error or "Server Application Not Available". This version was
not
| using any Authentication. I need to increase the time to about 90 minutes
or
| later so the user will be able to get the completed PDF file.
|
| Details
| IIS has the connection timeout at 900 seconds (or 15 minutes) and ASP.NET
| session timeout to 20 minutes. Both the Web.Config and the Machine.Config
has
| the session timeout at 20 minutes.
| But as I understand this, these values are used only when the session /
| application has been idle for this amount of time. There has to be
another
| setting that controls the amount of time the user can stay logged into a
| given session or the amount of time a user can stay connected to the
server
| (For 60 minutes as demonstrated by the behavior).
| I'm not changing any of the session properties in code.
| There are no error log messages.
| In addition to this when the session terminates for the user. If I
monitor
| the ASP.NET Worker Process thread that is performing the export it
continues
| to run until the export has been completed.
|
|
| Web.Config
| <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
| sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
| cookieless="false" timeout="20"/>
|
| Machine.Config
| <processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
| shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
| restartQueueLimit="10" memoryLimit="60" webGarden="false"
| cpuMask="0xffffffff" userName="SYSTEM" password="AutoGenerate"
| logLevel="Errors" clientConnectedCheck="0:00:05"
| comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
| responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>
|
| I've looked everywhere I can think of for this timeout configuration. Can
| somebody please help with an idea of where else to look for the timeout
| setting.or what I can do in code to prevent the session from terminating
| before the process has terminated.
| Thank You for your help ahead of time.
|
Nov 19 '05 #2
Thank You for your quick replay
This is another argument to get my boss to re-write this application.

"bruce barker" wrote:
the browser will also timeout. you can not control this. your approach is
wrong. you should start a background thread (probably a pool) to build the
report, then have the page poll for the results.

-- bruce (sqlwork.com)
"JIsenstadt" <JI********@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
| I would appreciate it if anybody can help with a issue I am having in an
| ASP.NET application that is timing out before a process has been
completed.
|
| The scenario
| ASP.NET application under IIS 5 runs a crystal report (which has a lot of
| complex formatting) and returns over 6,000 pages. The time to export this
| report to PDF using Crystal Reports Directly on the server is 83 minutes.
| But when the export to PDF is done through the Web Application at exactly
60
| minutes the session terminates. The web application returns the user to
the
| login page (using custom authentication) logged out. In an older version
of
| this web application the same report at exactly 60 minutes returns a "Page
| Not Found" Error or "Server Application Not Available". This version was
not
| using any Authentication. I need to increase the time to about 90 minutes
or
| later so the user will be able to get the completed PDF file.
|
| Details
| IIS has the connection timeout at 900 seconds (or 15 minutes) and ASP.NET
| session timeout to 20 minutes. Both the Web.Config and the Machine.Config
has
| the session timeout at 20 minutes.
| But as I understand this, these values are used only when the session /
| application has been idle for this amount of time. There has to be
another
| setting that controls the amount of time the user can stay logged into a
| given session or the amount of time a user can stay connected to the
server
| (For 60 minutes as demonstrated by the behavior).
| I'm not changing any of the session properties in code.
| There are no error log messages.
| In addition to this when the session terminates for the user. If I
monitor
| the ASP.NET Worker Process thread that is performing the export it
continues
| to run until the export has been completed.
|
|
| Web.Config
| <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
| sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
| cookieless="false" timeout="20"/>
|
| Machine.Config
| <processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
| shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
| restartQueueLimit="10" memoryLimit="60" webGarden="false"
| cpuMask="0xffffffff" userName="SYSTEM" password="AutoGenerate"
| logLevel="Errors" clientConnectedCheck="0:00:05"
| comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
| responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>
|
| I've looked everywhere I can think of for this timeout configuration. Can
| somebody please help with an idea of where else to look for the timeout
| setting.or what I can do in code to prevent the session from terminating
| before the process has terminated.
| Thank You for your help ahead of time.
|

Nov 19 '05 #3

Hi.
Umm...If I had an "old fashioned" modem connection why in the worl
would I want to wait for an hour online to get that report and pay m
phone company zillions of euros? If there's absolutely no othe
alternative, I understand. But are you sure that you have considere
other alternatives too to generate that report?
Is it a -must- that it must be generated on the fly? Why couldn't it b
generated before hand so that it could be downloadable to your client
requiring that report? If it has to be generated on the fly because o
time bound criteria, you've lost the battle already 'cause it runs no
for an hour. Because of that it will never contain accurate data pe
minute or so...

I would do this so, that I'd generate a background task for repor
generating (you don't need to invent the wheel again, there's *a lot
of alternatives with this, for example windows scheduling). After th
task has completed, the report would be transferred to such a plac
where it can be downloaded. And then there could be an aspx-page whic
creates dynamically an list of links, which point to your reports. Thu
I had an setup that doesn't need manual intervention, nor manua
updating links pointing to reports :
-
tomBon
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 19 '05 #4
Hello mister,

What tool you use for monitor the the ASP.NET Worker Process thread ? Can I
download it ?

Thanks and greetings
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

Apr 9 '07 #5

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

Similar topics

7
by: vivek | last post by:
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could...
1
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the...
4
by: Stephen | last post by:
I have a .NET (1.1 framework) application that is losing a session variable on only a few PC's. The main page is loading up in a frame in a Portal application. On the Page_Load it stores an...
4
by: Keith-Earl | last post by:
I have been writing ASP.NET apps since the RTM build and have never seen this. I built a simple app that uses session variables on my DEV laptop. All runs well. I have a simple toggle routine...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
0
by: Jimmy Reds | last post by:
Hi, Sorry if this appears twice but I post through Google Groups and it had a funny 5 minutes and didn't appear to post this message the first time. I am setting session variables on a page...
2
by: Jimmy Reds | last post by:
Hi, I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one. Here are some...
0
by: jason.friesen | last post by:
Hi Folks I have a custom CMS built in classic ASP that is losing session variables. To wit, I can create a situation where my 'show all the set SVs' test page shows a different set of SVs on each...
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
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
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...
1
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.