Search

[ASP.NET] No way to disable AppDomain restart when deleting subdirectory by Tomas Petricek

Closed
as External Help for as External

20
Sign in to vote
1
Sign in to vote
Sign in
to vote
Type: Suggestion
ID: 240686
Opened: 11/24/2006 3:56:33 PM
Access Restriction: Public
6
Workaround(s)
When ASP.NET application programatically deletes subdirectory in the application root folder, the ASP.NET runtime automatically restarts AppDomain (even if the subdirectory is located in the App_Data folder!).
Details (expand)
Product Language
English

Version

.NET Framework 2.0
Operating System
Windows Server 2003
Operating System Language
English
Problem Statement
The problem with this behavior is that many applications depend on storing data in file system and this behavior causes a lot of issues to these applications.

This is also a critical issue for the Phalanger (http://www.codeplex.com/Phalanger) project, because it makes it impossible to run some PHP applications under Phalanger, which is based on ASP.NET, but has its own httphandler implementing "script management" (no aspx files are used).


[EDIT]
Please, could you elaborate on what "Closed (External)" means? Does that mean that there is a solution to the reported problem or does it mean that there is no solution and no plans to provide a solution in a futre?

Thanks!
[/EDIT]
Proposed Solution
I think that this "feature" should be definitely disabled for App_Data folder.

I also suggest adding configuration option in web.config file that would allow disabling this behavior for other folders when it is not needed (this would be a solution for Phalanger as well).
TAP Code (if applicable)
 
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
1 attachments
DeleteSubdirWeb.zip
Sign in to post a comment.
Posted by Microsoft on 12/14/2006 at 10:20 AM
Hello Tomas,

We have routed this issue to the UIFX Server Team.

Regards,
Keen Browne
Program Manager
Visual Studio
Posted by Tomas Petricek on 1/19/2007 at 3:39 PM
Hi! I noticed that status of this feedback was changed to "Resolved (External)". Can you please explain what does this mean? And what can we expect in the future versions?

Thanks!
Tomas
Posted by plq on 7/4/2007 at 1:59 AM
A response from Microsoft on why this is classified as "Closed (External)" is needed. This is still a bug in current releases as far as I can tell.

plq at timetrials dot co dot uk
Posted by Njones on 7/28/2007 at 9:59 AM
Note to everybody: MS aggressively closes bug reports. They only pay attention to those which are defensively re-opened. Edit your report, and set the status back to Open, or they will never look at it again.
Posted by Xadhoom on 10/2/2007 at 6:58 AM
Could we please have this issue re-opened?
Posted by Tomas Petricek on 1/28/2008 at 5:13 PM
I reopened the problem - I would like to see an explanation on what "Closed (External)" means. Thanks.
Posted by Hone on 2/25/2008 at 10:59 PM
I see Tomas reopened this on 1/28/08 and then it was immediately closed again on the 29th. Can you please provide more explanation about this? Seems like it would be simple to create a flag that can be used in web.config to disable this functionality that is causing difficulty for a number of developers, myself included.

At least give us an explanation on why this is closed.
Posted by No way to disable AppDomain restart when on 4/23/2008 at 5:53 AM
For something considered so important to Microsoft (that they restart the AppDomain after every slight file/folder change), it amazes me that Microsoft are content to let us use a workaround that turns off this feature. I thought .NET enabled the developer to dictate when compilations occured? Why is the Framework taking an all of nothing approach?
I would like to know the downsides to using this work around. Are there any caching issues / memory issues / performance issues from not having this running and recycling? Please can someone in the know offer some peace of mind with using this workaround. Thanks.