473,396 Members | 1,945 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,396 software developers and data experts.

"The page cannot be displayed" after process for an hour

Hi. I am facing some problem in Asp.net. I am developing a payroll
application currently. This is a web-based application. User need to click on
"Process" button in order to process the payroll every time. Now the problem
is, if the processing time is less than 3600 seconds, everything will work
fine. but when the processing time is more than 3600 seconds. A page cannot
be displayed message will be shown on the browser.

Any one know why?

--
Siang Hwee
Nov 19 '05 #1
4 2708
Please, in any future question, include the version of the
..NET Framework, and the Operating System you're using.

Assuming you are using ASP.NET 1.1...

Check the following settings in web.config :
( If they don't exist in web.config, check to see if they were changed in machine.config )

If you see lower values in machine.config, change the values in the web.config file.

<httpRuntime executionTimeout="3600" /> ( You may need a higher value, in seconds )
( Caution: setting this value too high may lead to performance problems... )

If you're using forms authentication, check :
<forms name=".ASPXAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/" requireSSL="false" slidingExpiration="true">
*That* timeout is expressed in minutes. It may have been set to "60" ( 3600 seconds )

Also, check your sqlConnectionString timeout :

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" stateNetworkTimeout="10"
sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI" cookieless="false" timeout="20" />

It may be set to 60 *minutes*. You may need to set *that* timeout to a hiugher value.

Also, check to see if the processModel timeout has been changed from "infinite" to a finite setting:

<processModel enable="true" timeout="Infinite" ( there's many settings n that section. I only showed the "enable" and "timeout" ones.

Make any required changes, and let us know how you do.


Juan T. Llibre
ASP.NET MVP
===========
"Siang Hwee" <Si*******@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com...
Hi. I am facing some problem in Asp.net. I am developing a payroll
application currently. This is a web-based application. User need to click on
"Process" button in order to process the payroll every time. Now the problem
is, if the processing time is less than 3600 seconds, everything will work
fine. but when the processing time is more than 3600 seconds. A page cannot
be displayed message will be shown on the browser.

Any one know why?

--
Siang Hwee

Nov 19 '05 #2
Wouldn't be better to adopt an asynchronous approach?

Siang Hwee wrote:
Hi. I am facing some problem in Asp.net. I am developing a payroll
application currently. This is a web-based application. User need to click on
"Process" button in order to process the payroll every time. Now the problem
is, if the processing time is less than 3600 seconds, everything will work
fine. but when the processing time is more than 3600 seconds. A page cannot
be displayed message will be shown on the browser.

Any one know why?

Nov 19 '05 #3
Hi. Juan. Thanks for your help. I am using Framework 1.1 and windows XP pro
as my development platform.
Besides, this application can cater for multiple database. In current
production environment. it is connecting to mySql and MSSql Server depends on
client needs and their budget. Now the problem occur for mySql database which
located at a Linux server. I try to simulte the the problem in windows
environment and same problem occur.

Actually I did try some of your suggestion before i post the question.
For <httpRuntime> executionTimeout attribute. I even try to set the value
to 10000.
<processModel> timeout attribute i did check before it is infinite.
<sessionState> timeout attribute by default is 20. and i have no problem if
the the processing time is more than 20 minutes. So, it should'nt be a
problem.

The only thing i didn't check before i post the question is forms
authentication. The <forms> does not have any default time out value. I will
try to increase time out value but currently the latest source is in the
company and now is weekend. will get back to you if possible.

Again, many thanks to all your efforts. hava a nice day;)

"Juan T. Llibre" wrote:
Please, in any future question, include the version of the
..NET Framework, and the Operating System you're using.

Assuming you are using ASP.NET 1.1...

Check the following settings in web.config :
( If they don't exist in web.config, check to see if they were changed in machine.config )

If you see lower values in machine.config, change the values in the web.config file.

<httpRuntime executionTimeout="3600" /> ( You may need a higher value, in seconds )
( Caution: setting this value too high may lead to performance problems... )

If you're using forms authentication, check :
<forms name=".ASPXAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/" requireSSL="false" slidingExpiration="true">
*That* timeout is expressed in minutes. It may have been set to "60" ( 3600 seconds )

Also, check your sqlConnectionString timeout :

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" stateNetworkTimeout="10"
sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI" cookieless="false" timeout="20" />

It may be set to 60 *minutes*. You may need to set *that* timeout to a hiugher value.

Also, check to see if the processModel timeout has been changed from "infinite" to a finite setting:

<processModel enable="true" timeout="Infinite" ( there's many settings n that section. I only showed the "enable" and "timeout" ones.

Make any required changes, and let us know how you do.


Juan T. Llibre
ASP.NET MVP
===========
"Siang Hwee" <Si*******@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com...
Hi. I am facing some problem in Asp.net. I am developing a payroll
application currently. This is a web-based application. User need to click on
"Process" button in order to process the payroll every time. Now the problem
is, if the processing time is less than 3600 seconds, everything will work
fine. but when the processing time is more than 3600 seconds. A page cannot
be displayed message will be shown on the browser.

Any one know why?

--
Siang Hwee

Nov 19 '05 #4
Hi. Mattia. can you elaborate your asynchronous approach.

Thanks for your help.

"Mattia Saccotelli" <"m.saccotelli [AT] g" wrote:
Wouldn't be better to adopt an asynchronous approach?

Siang Hwee wrote:
Hi. I am facing some problem in Asp.net. I am developing a payroll
application currently. This is a web-based application. User need to click on
"Process" button in order to process the payroll every time. Now the problem
is, if the processing time is less than 3600 seconds, everything will work
fine. but when the processing time is more than 3600 seconds. A page cannot
be displayed message will be shown on the browser.

Any one know why?

Nov 19 '05 #5

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

Similar topics

3
by: Peter Rohleder | last post by:
Hi, I'm using a style-sheet where I make use of the XPATH-"following-sibling"-expression. The part which makes problems looks similar to the following code: --------------------------- ...
4
by: Earth Worm Jim | last post by:
I am using VS.Net 2003 on Windows 2003 Server (standard edition) and I am getting "The process cannot access the file because it is being used by another process" on DLL's in a VS.Net solution. ...
2
by: FrzzMan | last post by:
The first time I called this function, everything went well, but the second time I called it. An Exception thrown, do you know why? An unhandled exception of type 'System.IO.IOException' occurred...
9
by: Player | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all. I am in the process of teaching myself C# and I think I am doing OK. I have learnt how to how to call the right constructor of a...
6
by: eXseraph | last post by:
Hi, As we know,in normal asp.net application, a browser need to send a request to a server first to refresh its page. Now I need to design a asp.net application with real-time capability like the...
3
by: JeffM | last post by:
I have a .dat file on a remote server that seems to be locked. I have tried to FTP to it and delete it, rename it, copy over it and I get the error. "Could not copy temporary files to the output...
8
by: Henrik | last post by:
Hi Is there any way to see what the System process is doing? We have developed an application running at a production site to measure and optimize the production. The application needs to be...
6
by: eric.goforth | last post by:
Hello, I'm calling a VB.NET 2003 dll that's registered in COM+. I've added a reference to it in a VB6 DLL that I'm calling from a Classic ASP page. Previously I was able to attach to my .NET...
0
by: keikoo | last post by:
Hi, I need some help with this control. There's a windows form with a axwebbrowser control inside, so users can navigate to a page and it's necessary to keep the session, because, users will...
2
by: Kerem Gümrükcü | last post by:
Hi, i have a Process.Start call that fails with 267 Error Code if invoked with another user and password other than the applications user. It is a ordinary piece of code just create a Process...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.