473,396 Members | 2,061 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.

Restart ASP.NET on Error?


I have created an external AppDomain for use in my ASP.NET 1.1 app, it
is shared by all web users (it will eventually be physically Remoted
hosted on another server). When there is an Exception, the AppDomain
does not always unload. In fact, I can delete every file from the
directory tree except for the seperate DLL that has the AppDomain code
in it.

Short of using the IIS manager to stop the site (I do not have
Administrator permissions), how else can I handle this problem?

Thanks.
Nov 19 '05 #1
2 1019
What do you mean exactly that when an Exception is thrown? You mean across
the AppDomain boundary? That's perfectly fine, as an Exception is a perfectly
valid return value (if you will) from a method call, just as a normal return
value or output parameters are. So since it's a normal return value then
should have no bearing upon the lifetime of your child AppDomain.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have created an external AppDomain for use in my ASP.NET 1.1 app, it
is shared by all web users (it will eventually be physically Remoted
hosted on another server). When there is an Exception, the AppDomain
does not always unload. In fact, I can delete every file from the
directory tree except for the seperate DLL that has the AppDomain code
in it.

Short of using the IIS manager to stop the site (I do not have
Administrator permissions), how else can I handle this problem?

Thanks.


Nov 19 '05 #2
Thanks for Brock's suggestions.

Hi Xenophon,

I'm still not quite sure on the "external appdomain" you mentioned, is it a
separate appDomain where a certain executable assmebly(exe) is executing
or just a helper appdomain(as those add-in like appdomain)? As Brock has
mentioned, if you're doing cross-domain bound method calling , an unhandled
exception occured in the subdomain can be correctly handled in the parent
domain and the subdomain won't be unloaded. As for unhandled exceptions,
only when they're occuring in the main thread or an Unmanaged thread in the
appdomain will it cause the Process(not appdomain) to unload.

Please feel free to post here if you have some further nformation or
questions on this issue.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 19 '05 #3

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

Similar topics

5
by: Rick Lemons | last post by:
While coding .aspx pages and testing them in IE, I sometimes get the error "Server Error in '/' Application". There is really no error. I have found that if I restart IIS and reload the same page...
1
by: Sergey Krutous | last post by:
Can you please help me to resolve the following issue: I developed a windows service. At start up (I have overriden OnStart method) it connects to a web service and if the connection fails the...
0
by: nate | last post by:
>>> import findertools >>> findertools.restart() Traceback (most recent call last): File "<stdin>", line 1, in ? File...
4
by: =?Utf-8?B?bWFzbWl0aA==?= | last post by:
Can you restart an ASP.NET application in the Application_Start event when an error occurs so the next request for the application will fire the Application_Start event again? This would allow...
0
by: koolestj | last post by:
I am trying to understand why a server restart would cause mod_jk to not find a worker. I checked all tomcat workers were running and I was able to telnet to the ajp port on each app server. Just...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.