The current configuration only supports loading images built for a x86 processor architecture – spnativerequestmodule.dll

Posted: Monday, February 9, 2015 in .NET, asp.net

today i came across this issue once i enabled ‘Enable 32-bit Applications‘ to true on IIS

full error is

“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”

and then you browse the page it give’s HTTP Error 503. The service is unavailable since the app pool is stopped due to that error

Reason for the error
this because SharePoint’s  “spnativerequestmodule.dll ” only supports the 64 bit and when it tried to load on 32 bit environment it crashes

Resolution

run this command on command prompt

“%systemroot%\system32\inetsrv\AppCmd.exe” set config section:system.webServer/globalModules /[name=‘SPNativeRequestModule’].preCondition:integratedMode,bitness64″

This will direct the SPNativeRequestModule to only be loaded when the application pool is running in Integrated Mode and 64-bit application mode.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s