RequestLimitsElement("maxAllowedContentLength") = 1000000 RequestLimitsElement = 1000000 ĭim serverManager As ServerManager = New ServerManagerĭim config As Configuration = serverManager.GetApplicationHostConfigurationĭim requestFilteringSection As ConfigurationSection = config.GetSection("system.ftpServer/security/requestFiltering", "Default Web Site")ĭim requestLimitsElement As ConfigurationElement = requestFilteringSection.GetChildElement("requestLimits") Using (ServerManager serverManager = new ServerManager())Ĭonfiguration config = serverManager.GetApplicationHostConfiguration() ĬonfigurationSection requestFilteringSection = config.GetSection("system.ftpServer/security/requestFiltering", "Default Web Site") ĬonfigurationElement requestLimitsElement = requestFilteringSection.GetChildElement("requestLimits") This commits the configuration settings to the appropriate location section in the nfig file. You must be sure to set the commit parameter to apphost when you use AppCmd.exe to configure these settings. AppCmd.exe appcmd.exe set config "Default Web Site" -section:system.ftpServer/security/requestFiltering /requestLimits.maxAllowedContentLength:"1000000" /requestLimits.maxUrl:"1024" /commit:apphost The following examples specify FTP request limits for a maximum content length of 1000000 bytes and maximum URL length of 1024 bytes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |