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

ASP.NET processing abruptly stopped on IIS 6.0

Hi there

we noticed a rather strange behavior in one of our web applications. When debugging it on a local developer workstation, everything is processed fine (using Cassini Developement Webserver). When published on a remote webserver using IIS 6.0, processing runs fine for about 4 or 5 minutes, then abruptly dies.

I'll explain later what "abruptly dies" means, first i would like to give an excerpt of the failing code.

Expand|Select|Wrap|Line Numbers
  1. // loads data from SAP Webservice and serializes it into database    
  2. LoadXMLDataFromSAP();
  3.  
  4. // loop each item of a certain structure and parse data
  5. foreach (var xItem in xSapData)
  6. {// method determining a status, about 30 LOC, fast execution
  7.     GetStatusCodeForContract(xItem);
  8.  
  9.     ...
  10.  
  11.     // methods to parse data blocks, about 400 LOC, slow execution (database etc.)
  12.     TimeconsumingParserMethod1(xItem);
  13.     TimeconsumingParserMethod2(xItem);
  14. }
This code is running fine when Debugging, execution takes about 13 minutes (thats ok, because it only occurs when synchronizing all data with SAP). When running the SAME code against the SAME SAP-datasource on IIS 6.0, execution stops after 4 or 5 minutes.

First, the program throws a System.NullReferenceException on the call "TimeconsumingParserMethod1()", in the next loop we get the System.NullReferenceException on "GetStatusCodeForContract()". As we use the same parameter on both calls, i think the NullReferenceException is thrown because the member "xItem" is null.

Server configuration:
8 Core Intel machine
4 GB of RAM
RequestTimeout = 900 (15 minutes)
Memory usage = unlimited
Does anybody know about such a behavior on IIS 6 or similar production server environments?
Nov 30 '09 #1
3 1907
Frinavale
9,735 Expert Mod 8TB
I have a feeling that this has something to do with permission settings on the main server. This is usually the case because Cassini runs under the user account that you've logged in with (which may be an administrative account with full permissions) but on a real server it runs under the ASP.NET User account (which is restricted).

On the server, does the ASP.NET user account have permission to read the XML that you are working with?

-Frinny
Nov 30 '09 #2
Hi Frinny

Thanks for your answer, but i found the solution right now :) It has something to do with the AppDomain recycling behavior of ASP.NET 2.0, the AppDomain is reloaded on a certain amount of filechanges.

For those interested, the following article helped me out a great deal :)
http://weblogs.asp.net/owscott/archi...an-before.aspx
Nov 30 '09 #3
Frinavale
9,735 Expert Mod 8TB
I didn't realize that the AppDomain was recycled after a certain amount of file changes!

That seems a bit absurd. I have heard of it recycling if your application uses too much memory and your worker process becomes too large though.

Thanks for your response. I would never have known about this behaviour.

-Frinny
Nov 30 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Kapil Khosla | last post by:
Hi, I have a file with the format ////////// {blkid:= 10000} dfd dfd dfdfdfd dfd dfd {blkid:= 10001} dfd fddd gdfd dd
1
by: valexena | last post by:
After a few minutes of querying the database my session disconnects abruptly. Can somebody help me and tell why can be happening? -- Posted via http://dbforums.com
2
by: Russ McDaniel | last post by:
Originally posted to microsoft.public.dotnet.distributed_apps with no response. Reposted here with additional thoughts. --- Hello, I'm writing a Windows service which performs some...
7
by: Ford Prefect alias Armin | last post by:
I want to start a Thread and wait till the Thread has been stopped (via Suspend) How to do this. Sub Test Start Thread Wait Till Stopped Go on with this code as sone as the Thread has...
22
by: Brett | last post by:
I have a second thread, t2, that errors out and will stop. It's status is then "Stopped". I try to start t2 from thread 1, t1, by checking If t2.threadstate = "Stopped" Then t2.start() ...
9
by: Jay | last post by:
How do I stop execution of remaining sub procesures in a multithreaded app? For example: sub form_load dim i as integer for i = 1 to 5 '5 threads dim ts as threadstart(addressof...
5
by: mailtofinny | last post by:
Hi I have a perl script which deals with files like this. My aim is to close the handlers safely eventhough the perl script execution is stopped abruptly. How can i do this. Pls give me a...
0
by: tshad | last post by:
I have a filewatcher program that is working syncronously (which is how I want it to work). But my program will handle whatever files are in the folder at the time it runs. So when I drop 15...
3
by: cwinay | last post by:
Hey guys, I couldn't find a dedicated hardware section here so I picked this section to ask my question assuming that system administrators of all kind hit this forum. Guide me to an appropriate...
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
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
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
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,...
0
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...

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.