Microsoft KB Archive/310450

= BUG: XCOPY Deployment Enlarges Temporary ASP.NET Folder Size =

Article ID: 310450

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft ASP.NET 1.0
 * Microsoft ASP.NET 1.1

-



This article was previously published under Q310450



SYMPTOMS
When you use XCOPY deployment to update .aspx and .ascx pages in a virtual directory, if you do not modify files that trigger the AppDomain to be unloaded, the dynamic-link library (.dll) files that the AppDomain references do not get deleted. This causes the Temporary ASP.NET Files folder to grow each time the .aspx or .ascx files are recompiled, which eventually causes a shortage of disk space.



CAUSE
This problem occurs because you cannot unload assemblies from an AppDomain in this version of the .NET framework; you must unload the entire AppDomain.



RESOLUTION
To work around this problem, ensure that the AppDomain is unloaded when you perform multiple XCOPY deployments on a Web server that has limited disk space. The following files trigger an AppDomain to be unloaded. To prevent the Temporary ASP.NET Files folder from growing in size, modify these files:
 * Global.asax
 * Web.config
 * Machine.config
 * Any file that you modify in the virtual directory's Bin folder



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbcompiler kbdeployment kbnofix kbreadme KB310450

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.