Running a 32 bit web application in IIS 8 with SharePoint 2013


Outcome: 

When running the clickhome3 web application, you will receive a HTTP Error 503. The service is unavailable. error. You can notice the application pool has stopped and the following error is logged in event viewer

The Module DLL ‘C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\isapi\spnativerequestmodule.dll’ could not be loaded due to a configuration problem. The current configuration only supports loading images built for a x86 processor architecture. The data field contains the error number. To learn more about this issue, including how to troubleshooting this kind of processor architecture mismatch error, see http://go.microsoft.com/fwlink/?LinkId=29349.


Solution:

1. Make sure you got the crystal report runtime viewer12 installed correctly


2. IIS tries to load the spnativerequestmodule.dll for 32-bit application and causes the application pool to crash. Run the following command using the windows command prompt. This would direct the SPNativeRequestModule to only be loaded when the application pool is running in Integrated Mode and 64-bit application mode and not when running in 32-bit application mode.


"%systemroot%\system32\inetsrv\AppCmd.exe" set config -section:system.webServer/globalModules /[name='SPNativeRequestModule'].preCondition:integratedMode,bitness64




ClickHome - Construction Software