IIS Recompile ASP NET Websites

I talked with a friend about what IIS does when you put a new file in a virtual directory.

He told me that IIS will recompile the whole site, when you put the file anywhere on the website, I think it just happens (if it happens) when you put the file in the Bins folder.

The conversation occurs because the company’s website is used to upload files, but the files are saved inside the name of the “Letters” folder on our website, my friend says that every time someone uploads a file, IIS will recompile the whole site . Is he right?

+3
source share
6 answers

. JIT -... , , .

+2

, . App_Code. , -.

+2

, ASP.NET , -, App_Code global.asax .

. ASP.NET.

( "bin" "app_code"!)

+1

machine.config numRecompilesBeforeApprestart , , . - 15.

, aspx " ", .

, .

+1

. powershell:

$AppPoolName = 'NameOfApp'

$AppPool = Get-ChildItem iis:\apppools | where { $_.Name -eq $AppPoolName}

Restart-WebAppPool $AppPool

.

+1

, : , , IIS , , .

I THINK that earlier this markup did not cause recompilation unless you go to it (and instead go to another markup file) and bin / dll / assembly files will always run.

0
source

Source: https://habr.com/ru/post/1707824/


All Articles