Hey All
A tool we use programmatically creates/updates ASP.NET 2.0 websites and each website is in its own Application Pool, this is all done via C# and DirectoryServices. When I create the website for the first time, I check to see if the related appPool needs to be created and do so if needed, if not, then I just recycle the application pool and regenerate my website DLLs in the bin directory. My problem is that even after recycling the application pool, my website's generated DLLs cannot get copied into the BIN directory as the old lock still exists on the old DLL files. If I wait a long time (couple of minutes), everything seems to work. In an earlier iteration of our code, we generated all websites within the DefaultAppPool application pool and never had any problems with locked files. Any ideas?
Thanks
Mustafa