Data compression
<urlcompression dostaticcompression= "true"/>
SecuritymaxAllowedContentLength set the maximum value of the uploaded file, allowdoubleescaping whether to check the URL contains the + number case
<security> <requestfiltering allowdoubleescaping= "true" > <requestlimits Maxallowedcontentlength= "10000000"/> </requestFiltering> </security>
MailsettingsMainly beneficial to SmtpClient, if the configuration is written in the appsetting need to manually fill the parameters, if the use of mailsettings, the situation becomes very simple
SMTP = new SmtpClient (); SMTP. Send (msg);
<system.net> <mailSettings> <smtp from= "[email protected]" >
Password= "Onr4qv2s" /> </smtp> </mailSettings> <defaultproxy enabled= " True "/> </system.net>
HttpprotocolSeemingly remove server does not work
System.WebmaxRequestLength and maxAllowedContentLength have similar purposes,
The recommended setting is the same value, specific reference https://forums.iis.net/t/1169846.aspx
<system.web> <compilation targetframework= "4.6" debug= "false"/>
Web Config Config memo