473,811 Members | 3,314 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspnet_wp.exe restarts after updating assembly

I have a web app running on Windows 2000 with the home directory pointed to a
network share on a file server. We have a long running process which copies
jpg images from user's folders on a network share, processes them and copies
them to another location. Depending on the number of images this can take a
long time. If I update the dll (assembly) in the /bin folder the process dies
and the user is given a "Server Application Unavailable" page. When I look in
the event log all that is stated is that the aspnet_wp.exe stopped
unexpectedly.

I thought when a process was using an assmbly and the assembly was updated
the process continued to use the assembly (as a shadow copy) until it was
complete. Obviously, I'm mistaken.

I realize I should update during the obscure hours of the night, however
this is not the answer I am looking for because of other constraints. Is
there a fix? What are my options for a workaround? I realize I could do the
processing offline, but the clients want the files processed in realtime. Is
there a way I could trap the failure and recover from it when the worker
process restarts?

Thanks,
Mark
Nov 19 '05 #1
2 1302
when you copy the dll, its causes asp.net to create a new appdomain for new
requests. its then drains the active requests in the old appdomain then
unloads it.

if you get a recycle its because either the new domain required too much
memory, or your long running process was seen as a deadlock.

you cannot catch the error because a recycle dumps all code an context. the
error the browser displays is because iis detaches the close pipe between it
and the asp.net worker process.

your options:

1) save copy context in a database / file and allow the user to continue
where they left off.
2) use an isapi filter written in c/c++ to do the copy.
3) best - write an ntservice (in .net) that does the copy, and have the copy
page request the service do the copy, then poll for completion.

-- bruce (sqlwork.com)

"wsMarkM" <ws*****@discus sions.microsoft .com> wrote in message
news:CC******** *************** ***********@mic rosoft.com...
| I have a web app running on Windows 2000 with the home directory pointed
to a
| network share on a file server. We have a long running process which
copies
| jpg images from user's folders on a network share, processes them and
copies
| them to another location. Depending on the number of images this can take
a
| long time. If I update the dll (assembly) in the /bin folder the process
dies
| and the user is given a "Server Application Unavailable" page. When I look
in
| the event log all that is stated is that the aspnet_wp.exe stopped
| unexpectedly.
|
| I thought when a process was using an assmbly and the assembly was updated
| the process continued to use the assembly (as a shadow copy) until it was
| complete. Obviously, I'm mistaken.
|
| I realize I should update during the obscure hours of the night, however
| this is not the answer I am looking for because of other constraints. Is
| there a fix? What are my options for a workaround? I realize I could do
the
| processing offline, but the clients want the files processed in realtime.
Is
| there a way I could trap the failure and recover from it when the worker
| process restarts?
|
| Thanks,
| Mark
Nov 19 '05 #2
Thanks, Bruce.

I figured a service was my best bet although I hadn't thought about polling
the service. So I will be certainly using that. However, I ALSO need to allow
the user to resume in some cases. Could you give me a little more information
about the copy context you mentioned? How would I do that and where would I
find the documentation?

I appreciate your great response.

Thanks,
Mark
Nov 19 '05 #3

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

Similar topics

4
1590
by: Zeng | last post by:
Hello, I'm wondering if anybody has seen this problem. I basically need to cycle through ~30000 db rows to update the data, I load up the id of the rows I need first, put them into ArrayList, close the connection, then process through one record at a time, so there is no nested transaction. It normally take 1 hour or more, after about 45 min, the aspx page gives up with a server unavailable msg, but the server still goes on in the...
2
1846
by: George Barker | last post by:
Got the error "Requested registry access is not allowed." On our production box today. Started happening in the middle of the day on any procedure that tried to create an object via SQLClient . . . Since no one had any idea how this could suddenly start happening (everyone denied having made any changes to permissions on the box) we tried killing the aspnet_wp.exe process. That fixed the problem. But now I have explain to the users...
1
1279
by: Ivan Towlson | last post by:
A colleague has just installed VS2003 on Windows 2000 and created her first simple Web application, and aspnet_wp is firing up only transiently, a new instance for each request. We first noticed it when we tried to put a breakpoint in the app and VS didn't think the assembly was being loaded. Debug > Processes couldn't see the aspnet_wp process to attach manually and it didn't show up in Task Manager. Very strange. Process Explorer...
3
4786
by: Luk | last post by:
Hi, we have got a problem with asp.net and we don't know what to do Usually aspnet_wp.exe under medium/high load uses a maximum of 40% cpu power. Suddently even when requests are not so high it starts using 100% cpu. Pages are so served in many seconds each (instead of few cents), process threads and memory grows for all user new requests due to the low speed or complete non working site. However we have not memory problems (there is...
3
1989
by: CG | last post by:
I have a VS .NET 2003 web service project which references a Managed C++ assembly. The managed C++ assembly in turn uses some unmanaged code. Because of some restriction in the unmanaged (legacy) code, I can only have a aspnet_wp.exe worker process service only one web service request. In other words, after aspnet_wp.exe (wp1) serviced User1's web service request, it should not be used to service
0
1287
by: Dmitry Polyakovsky | last post by:
We are not sure exactly what is causing it and any suggestions will be greatly appreciated. The largest reports we are trying to pull up have about 100,000 rows with about 10 columns (mostly int, some varchar 100). Only 4 testers are using the system. The database resides on a different server (same hardware and OS, SQL 2K SP3a) and it runs just fine. ReportingServicesService.exe is set to restart after 1 minute so it comes up and restarts...
0
1122
by: NancyASAP | last post by:
Using VS 2003 .NET 1.1. Debugging works fine except under one condition. In my code, I instantiate an object that references a vendor .NET assembly wrapping a COM object. Debugging works up to the point in code where I execute a method on that object (myObj.StartPrinting). After line executing the method, all debug breakpoints cease to function. Opening Debug Processes window, I see that the aspnet_wp.exe process is no longer listed...
1
1661
by: Greg | last post by:
Hi, I have a web service that calls an an assembly on a server. My client calls the web service, the web service calls the assembly... very straightforward. I have noticed 2 things though that I cannot quite understand; A) When my assembly throws an exception (that is handled and trickles back down to the client) and my client goes to invoke another call...
1
1662
by: =?Utf-8?B?RWQ=?= | last post by:
After installing SP2 my computer restarts continuousely (after POST, whilst trying to initialise windows) unless i boot from the sp2 CD every time i turn on the computer, in which case it loads fine, from the HDD! i only use SATA hard drives and have 2 IDE ports (used for CD drives). If i have an IDE HDD installed before installing sp2, the computer starts fine, unless the IDE HDD is removed, in which case the computer restarts...
0
9731
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
10651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10405
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,...
0
10136
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
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
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.