SharePoint 2013 运行在IIS 应用32位错误

  • 问题描述:

今天有一个项目因为用了OWC11,没有64位的dll,因此IIS设置了“启用32位应用程序”为true。

 如图:SharePoint 2013 运行在IIS 应用32位错误

详细操作见:http://www.cnblogs.com/cainiaoguoshi/archive/2013/05/06/3063764.html

只要一访问程序池就挂了,查看系统日志,错误信息:

由于配置问题,无法加载模块 DLL“C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions15isapispnativerequestmodule.dll”。当前配置仅支持加载为 x86 处理器架构构建的映像。数据字段包含错误号。要了解有关此问题的更多信息,包括如何解决这类处理器架构不匹配错误

  • 解决方案:

     进入“%systemroot%system32inetsrvconfig ”,找到applicationHost.config的文件找到SPNativeRequestModule 节点

<add name="SPNativeRequestModule" image="C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions15isapispnativerequestmodule.dll" preCondition="integratedMode,bitness64" />

改成这样以后,spnativerequestmodule.dll在32环境下就不加载了!