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

The application domain in which the thread was running has been unloaded.

While using VS 2005 Pro I get this about 50% of the time.

I run the app. See whats wrong. Stop the app (stop debugging button).
Make changes and then click the start debugging button.

If I use F5 this does not happen.

Any ideas?

Thanks
Lloyd Sheen

Oct 18 '07 #1
2 10176
Each application has its own App Domain inside the aspnet worker
process. And there can be multiple instances of an Application object
inside a particular App Domain each catering to a different request.

ASP.NET creates a separate thread for each such application instance
inside an App Domain and CLR manages the thread pool. After some time,
when there are no requests to service and a specific timeout period,
the Application object kills itself and the app domain unloads.

And if somehow when ASP.NET tries to unload the application and an
exception occurs, we get this message. Another case I have seen this
error coming is when you are running your project on low memory.

Workaround 1: Stop the current aspnet_wp worker process & any
other .Net service. Then
recompile the whole solution.
Workaround 2: Clean Solution and sometimes you have to do a full
Rebuild.
Workaround 3: Check if there is still a webserver running in your
taskbar from a pervious debug, close it.

Regards,
Manish

"Lloyd Sheen" wrote:
While using VS 2005 Pro I get this about 50% of the time.

I run the app. See whats wrong. Stop the app (stop debugging button).
Make changes and then click the start debugging button.

If I use F5 this does not happen.

Any ideas?

Thanks
Lloyd Sheen

Oct 19 '07 #2

"Manish" <Ma****@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
Each application has its own App Domain inside the aspnet worker
process. And there can be multiple instances of an Application object
inside a particular App Domain each catering to a different request.

ASP.NET creates a separate thread for each such application instance
inside an App Domain and CLR manages the thread pool. After some time,
when there are no requests to service and a specific timeout period,
the Application object kills itself and the app domain unloads.

And if somehow when ASP.NET tries to unload the application and an
exception occurs, we get this message. Another case I have seen this
error coming is when you are running your project on low memory.

Workaround 1: Stop the current aspnet_wp worker process & any
other .Net service. Then
recompile the whole solution.
Workaround 2: Clean Solution and sometimes you have to do a full
Rebuild.
Workaround 3: Check if there is still a webserver running in your
taskbar from a pervious debug, close it.

Regards,
Manish

"Lloyd Sheen" wrote:
>While using VS 2005 Pro I get this about 50% of the time.

I run the app. See whats wrong. Stop the app (stop debugging button).
Make changes and then click the start debugging button.

If I use F5 this does not happen.

Any ideas?

Thanks
Lloyd Sheen

Thanks for the workarounds. It seems that if I kill the app by closing the
browser it does not happen too much. It happens more when I close it by
clicking the stop debugging button. (Listening MS?).

LS

Oct 19 '07 #3

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

Similar topics

2
by: Keith Jakobs, MCP | last post by:
Greetings: I had seen several posts around the Internet about this issue from a few months back, but have been unable to find a resolution ... I have a user who is trying to get started with...
8
by: nickdu | last post by:
I'm trying to isolate "applications" into their own application domain within a single process. I've quoted applications because it's a logical representation of an application. Basically it...
6
by: Marios | last post by:
Hi, I want to have in a application i have created the feature of application recycling, similar to the aspnet_wp, and the new COM+ service. The reason i want to do this is because of being able...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
6
by: jim | last post by:
Hi All, I like to know the life cycle of an ASP .NET Application( incudieng server application, such as .NET Web Service). That means from initialization to fully running and how to reboot it or...
2
by: Artem | last post by:
When I use the method Thread.Abort, it only sends a request of aborting to OS to stop a thread. The thread itself isn't killed and allocated resources aren't released. I tried to run that thread...
7
by: Daniel | last post by:
Hello! I am having a problem with a windows application that abnormally terminates itself. The application is a multi threaded .NET 1.1 application, and can briefly be described as follows: ...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: Steve | last post by:
Hello- Your assistance with this issue is greatly appreciated. Environment: - Load-balanced IIS 6.0 servers (Win2003) - web servers point (via UNC path) to a Microsoft File Cluster on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
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.