0

I have an ASP.NET site (.NET 4.0) with ~1200 dlls files Every time I change dll in bin folder (add, remove or replace), my site became to very slow and need to wait about 10 minutes to connect again, sometime need to reset IIS

Is there any way to settings ASP.NET or IIS just load new dll, do not reload all dll?

Thank all!

3
  • You can try using a binary diff tool such as BeyondCompare and set it to perform binary comparison between two folders. You only need to deploy what has changed. I am still confused, is the copy taking the longest? If so You can easily generate a zip or rar file of files that have changed.
    – Ross Bush
    Nov 11, 2015 at 4:41
  • 3
    What the hell. 1200 DLLs? I think that's your problem! That's absurd.
    – Phill
    Nov 11, 2015 at 4:48
  • 1
    Changes to bin force a recycle - stackoverflow.com/q/302110/314291
    – StuartLC
    Nov 11, 2015 at 5:02

1 Answer 1

0

ASP.NET dynamic compilation enables you to modify your source code without having to explicitly compile your code before you deploy your Web application. If you modify a source file, ASP.NET automatically recompiles the file and updates all linked resources. By default, ASP.NET Web pages and code files are compiled dynamically when users first request a resource, such as an ASP.NET page (.aspx file), from a Web site. After pages and code files have been compiled the first time, the compiled resources are cached, so that subsequent requests to the same page are extremely efficient. You can retrieve more information about ASP.NET dynamic compilation: http://msdn.microsoft.com/en-us/library/ms366723(v=VS.100).aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.