代码之家  ›  专栏  ›  技术社区  ›  Homayoun Behzadian

IIS和web.management.php

  •  0
  • Homayoun Behzadian  · 技术社区  · 8 年前

    无法使用iisreset,因为在使用之后,我得到如下信息:

    Attempting stop...
    Internet services successfully stopped
    Attempting start...
    Restart attempt failed.
    The service did not respond to the start or control request in a timely fashion. (2147943453, 8007041d)
    

    在事件查看器中,我得到以下事件:

    IISMANAGER_ERROR_LOADING_PROVIDER_TYPE
    
    IIS Manager could not load type 'Web.Management.PHP.PHPProvider, Web.Management.PHP, Version=1.2.0.0, Culture=neutral, PublicKeyToken=8175de49a9aec91d' for module provider 'PHP' that is declared in %windir%\system32\inetsrv\config\administration.config. Verify that the type is correct, and that the assembly that contains the module provider is in the Global Assembly Cache (GAC).
    
    Exception:System.IO.FileNotFoundException: Could not load file or assembly 'Web.Management.PHP, Version=1.2.0.0, Culture=neutral, PublicKeyToken=8175de49a9aec91d' or one of its dependencies. The system cannot find the file specified.
    File name: 'Web.Management.PHP, Version=1.2.0.0, Culture=neutral, PublicKeyToken=8175de49a9aec91d'
       at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       at System.Type.GetType(String typeName, Boolean throwOnError)
       at Microsoft.Web.Management.Server.AdministrationModuleProvider.GetModuleProvider(String userName, String connectionName)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    
    
    Process:InetMgr
    Connection:computer\admin
    

    我打开了 %windir%\system32\inetsrv\config\administration.config 但没有发现包括 php 或 Web.Management.PHP.PHPProvider 或任何与php相关的东西

    使IIS恢复工作的唯一方法是重新启动服务器

    1 回复  |  直到 8 年前
        1
  •  1
  •   Lex Li    8 年前

    (从评论中复制。)

    不幸的是,这些问题是由微软7月份的补丁引起的,正如过去几天互联网上其他地方所讨论的,比如 this 是的。

    您需要卸载相关的修补程序才能恢复服务,然后阅读更新的知识库文章,以了解需要哪些额外的修补程序或过程来解决问题。