Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: XCOPY Deployment Enlarges Temporary ASP.NET Folder Size


View products that this article applies to.

This article was previously published under Q310450

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


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

↑ Back to the top


Status

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

↑ Back to the top


Keywords: KB310450, kbdeployment, kbcompiler, kbreadme, kbnofix, kbbug

↑ Back to the top

Article Info
Article ID : 310450
Revision : 4
Created on : 2/23/2007
Published on : 2/23/2007
Exists online : False
Views : 511