sharepoint 2013 "The module ... owssvr.dll could not be loaded due to a configuration problem"

打开sharepoint站点可以看到这个503的错误, 在event viewer中查看如下:

The Module DLL 'C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14isapiowssvr.dll' could not be loaded due to a configuration problem. The current configuration only supports loading images built for a x86 processor architecture.


导致这个问题的原因可能是安装了32bit的应用程序导致IIS加载模块出现问题.

解决办法

1,将所有应用程序池中的应用,右键->高级->启用32bit模式->false.

2,编辑applicationHost.config:

<globalModules>
 ...
 ...
 <add name="SharePoint14Module" image="C:Program FilesCommon
 FilesMicrosoft SharedWeb Server
 Extensions14isapiowssvr.dll"
 preCondition="appPoolName=SharePoint
 Central Administration v4" />
 </globalModules>
改为
 <add name="SharePoint14Module" image="C:Program FilesCommon FilesMicrosoft
 SharedWeb Server Extensions14isapiowssvr.dll" preCondition=
"appPoolName=SharePoint Central Administration v4,bitness64" />

如果有bitness64 则不需要更改.