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

Last post 04-28-2008 7:02 PM by chadscharf. 26 replies.

Sort Posts:

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

    08-29-2006, 4:21 PM
    • Loading...
    • nzpcmad
    • Joined on 08-29-2006, 8:15 PM
    • Auckland, NZ
    • Posts 2

    Recently upgraded to VS 2005. With a large project, I keep getting this message when I try and build.

    Looked through the forums - have tried cleaning and rebuilding - no joy.

    Have also tried increasing size of virtual memory - no joy.

    Any ideas?

    Thanks

     

     

     

  • Re: The application domain in which the thread was running has been unloaded

    08-29-2006, 9:06 PM
    • Loading...
    • timmcb
    • Joined on 11-04-2002, 4:29 PM
    • Redmond, WA
    • Posts 469
    • AspNetTeam
    This is a bug I recently fixed for VS 2005 SP1.  SP1 should be released later this year.  If you need the fix sooner contact Microsoft Product Support and request a hot fix.  There is not a work-around to this as it is a race condition problem.
    Tim McBride

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: The application domain in which the thread was running has been unloaded

    08-30-2006, 4:10 PM
    • Loading...
    • Peter Ritchie
    • Joined on 08-30-2006, 8:06 PM
    • Ottawa, Canada.
    • Posts 8
    • TrustedFriends-MVPs
    Tim, is there a KB article to reference when requesting this hotfix?
    Microsoft MVP, Visual C#
  • Re: The application domain in which the thread was running has been unloaded

    08-30-2006, 4:32 PM
    • Loading...
    • nzpcmad
    • Joined on 08-29-2006, 8:15 PM
    • Auckland, NZ
    • Posts 2

    Tim,

    Many thanks for the info.

    I spoke to Support. They need the KB number in order to supply me with the hot fix.

    Many thanks

     

     

  • Re: The application domain in which the thread was running has been unloaded

    08-30-2006, 8:05 PM
    • Loading...
    • timmcb
    • Joined on 11-04-2002, 4:29 PM
    • Redmond, WA
    • Posts 469
    • AspNetTeam

    There is not a KB for this yet.  You are the first customer asking for the fix.  So, it will require support to submit a Quick Fix Engineering (QFE) request.  I'm not sure what red-tape is involved -- but once it gets to me I'll make the fix and they will issue a KB.  Feel free to tell them I sent you.

    Tim McBride

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: The application domain in which the thread was running has been unloaded

    12-30-2006, 7:38 PM
    • Loading...
    • matt.whitby
    • Joined on 12-31-2006, 12:35 AM
    • Posts 1

    Make that two people.  I am getting the same error.

    I was half-way through a project and it was going fine and then this error appeared out of no where.  I work for a large organisation and we're looking to move from VS2003 to VS2005 but this kind of error worries me and perhaps we shouldn't move over until at least SP1 or SP2.
     

  • Re: The application domain in which the thread was running has been unloaded

    12-31-2006, 10:15 AM
    • Loading...
    • Peter Ritchie
    • Joined on 08-30-2006, 8:06 PM
    • Ottawa, Canada.
    • Posts 8
    • TrustedFriends-MVPs

    Matt, SP1 is now out.  I don't know if it specifically addresses this issue; but if you find after installing SP1 this issue no longer occurs, please post back so other people may know.

    Visual Studio 2005 SP1 information
    http://support.microsoft.com/?kbid=928957

    Visual Studio 2005 Standard, Professional, Team Editions SP1 download:
    http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en

    Visual C#/J#/C++/Basic/Web-Dev 2005 Express SP1 downloads
    http://www.microsoft.com/downloads/details.aspx?familyid=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en

    Visual Studio 2005 Team Foundation Server SP1 download:
    http://www.microsoft.com/downloads/details.aspx?familyid=A9AB638C-04D2-4AEE-8AE8-9F00DD454AB8&displaylang=en

    Microsoft MVP, Visual C#
  • Re: The application domain in which the thread was running has been unloaded

    02-14-2007, 6:58 PM
    • Loading...
    • zoetosis
    • Joined on 12-02-2005, 9:28 AM
    • Cheshire, England
    • Posts 89

    I'm using VS2005 Team Edition for Developers with SP1 installed.

    I've had this problem 3 times today. If I press F5 again the build succeeds. As the app gets bigger this could become annoying but I can live with it at the moment

  • Re: The application domain in which the thread was running has been unloaded

    04-04-2007, 5:15 PM
    • Loading...
    • JoshStodola
    • Joined on 01-16-2007, 9:17 AM
    • Heartland of America
    • Posts 3,025

    This problem has NOT been fixed by SP1.  I still get this daily.  As a matter of fact, I got it 3 times today.  Keep in mind, this happens with a very large solution.  The first time I got it today, my entire machine locked up.  Could not even click "Send Error Report", had to hard boot.

    Can somebody give me an idea when this is going to be fixed?  I don't have to work with this solution all the time, but still this is quite annoying.  Especially when the build time is like 60 seconds before it gives me this error.

    Confused

    Josh Stodola ← Come check out my blog!
  • Re: The application domain in which the thread was running has been unloaded

    04-24-2007, 10:59 AM
    • Loading...
    • jonogden
    • Joined on 10-13-2002, 2:31 PM
    • Posts 13
    Definitely NOT fixed - irritating and frustrating to deal with a project which has to build itself twice to run.
  • Re: The application domain in which the thread was running has been unloaded

    04-24-2007, 11:07 AM
    • Loading...
    • Peter Ritchie
    • Joined on 08-30-2006, 8:06 PM
    • Ottawa, Canada.
    • Posts 8
    • TrustedFriends-MVPs
    There is nothing publicly announced to suggest there will be a service pack 2 for Visual Studio 2005.  You might want to download the Orcas Beta 1 to see if it does not have this problem.
    Microsoft MVP, Visual C#
  • Re: The application domain in which the thread was running has been unloaded

    05-28-2007, 11:15 AM
    • Loading...
    • nmduc
    • Joined on 04-13-2007, 7:49 AM
    • Posts 79

     I just know this problem today. And I follow your suggestion to press F5. It works fine. Thank you very much.

  • Re: The application domain in which the thread was running has been unloaded

    10-20-2007, 12:58 PM

    Peter Ritchie:
    There is nothing publicly announced to suggest there will be a service pack 2 for Visual Studio 2005.  You might want to download the Orcas Beta 1 to see if it does not have this problem.

    I'm running Visual Studio Team System 2008 Beta 2 and this problem still exists.

    Chad Scharf
    http://www.chadscharf.com

    Don't forget to click "Mark as Answer" if someone answers your question.
  • Re: The application domain in which the thread was running has been unloaded

    11-07-2007, 2:11 PM
    • Loading...
    • bdoc7aspnet
    • Joined on 11-07-2007, 7:08 PM
    • Posts 3

    Try closing visual studio, deleting all your obj folders from the projects in your sln, opening your sln, F5.  That fixed it for me when I had this issue.

  • Re: The application domain in which the thread was running has been unloaded

    11-07-2007, 2:16 PM
    • Loading...
    • bdoc7aspnet
    • Joined on 11-07-2007, 7:08 PM
    • Posts 3

    Nevermind - that only seemed to temporarily fix the problem.  Doing a Clean on the sln may have fixed it, though.

Page 1 of 2 (27 items) 1 2 Next >