views:

57

answers:

2

Hi everybody,

I develop a simple file manager inside an ASP.NET Web site (not web application).

I notice that every time I rename or delete a folder, the site gets recompiled - i.e. the very next web request after delete or rename operation takes considerably much time to execute.

It's only true for folders, not for files. Why does this occur?

P.S. I use WebDev server (Cassini), haven't tested in on IIS yet.

UPDATE: The same disaster happens with ASP.NET MVC Web Applications :(

UPDATE 2: Here are similar discussions:

A: 

Where are the folders you are creating? Under App_Data?

Raj Kaimal
No, ~/Storage. These files and folders must be available from web.
amartynov
+1  A: 

Asp.net watches the folders and then runs compilation to keep up with any changes you make. To overcome this you can use Non-updateable full precompilation, which you can read about here.

Jason Webb
You maybe wrong, non-updateable precompilation doesn't help.
amartynov
It is still recompiling on you or it doesn't allow you to create folders? Also I just noticed you are using the dev server. That is most likely part of the issue. Maybe try it out on IIS and see if it is still recompiling.
Jason Webb
BigJason: same on IIS, same on all types of web apps, you delete or rename forder and app gets recycled.
amartynov