zoukankan      html  css  js  c++  java
  • IIS7 handlers accessPolicy

    Const  JAKARTA_ISAPI As String = "ISAPI-dll"
    
    Using serverManager As New ServerManager()
    	Dim config As Configuration = serverManager.GetWebConfiguration(strWebsiteName, strVirtualDirName)
    
    	Dim handlersSection As ConfigurationSection = config.GetSection("system.webServer/handlers")
    
    	Dim handlersCollection As ConfigurationElementCollection = handlersSection.GetCollection()
    
    	Dim addElement As ConfigurationElement = IISConfigurationSettings.FindElement(handlersCollection, "add", "name", JAKARTA_ISAPI)
    	If addElement = Nothing Then
    		Throw New InvalidOperationException("Element not found!")
    	End If
    
    	addElement("requireAccess") = "Execute"
    
    	serverManager.CommitChanges()
    End Using
    
    



    http://www.iis.net/ConfigReference/system.webServer/handlers
    http://www.iis.net/ConfigReference/system.webServer/handlers/add

  • 相关阅读:
    1163
    1162
    1154
    Qt532_QWebView做成DLL供VC/Delphi使用_Bug
    Qt532__std::numeric_limits<qint64>::min();
    Qt532_WebKit_SSL问题
    Qt532_自定义QWebView_01
    HTML解析
    Qt5_pro_02
    Qt5需要的_libstdc++6_4.7.2-5_???.deb
  • 原文地址:https://www.cnblogs.com/LCX/p/1875664.html
Copyright © 2011-2022 走看看