http error 503. the service is unavailable in IIS after enabling 32 bit application


By default, IIS running on a 64 bit computer does not support running a 32 bit application. However, you can change the setting in an Application Pool under which the application is running by setting the ‘Enable 32-bit Applications‘ to true

In IIS, I created a new web-site and change the application pool to enable 32-bit application to support my 32 bit application.

While accessing the apppplication i got the  “HTTP Error 503. The service is unavailable” error.

Also Identified that the application pool was stopped repeatedly when i tried to access the  application. Finally got the below error from 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:

Run the following command in Windows Command Prompt. 


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

This  will solve the problem to load SPNativeRequestModule when the application pool is running in Integrated Mode and 64-bit application mode.

Hope the issue solved !!

Thanks for reading this article!! please leave your comments and suggestion about this article.

Images and CSS not shown in website hosted in IIS Server 7.5


Recently I came across a unseen problem.

A website working perfectly While debugging using Visual studio 2010 . All the Images and CSS are loaded perfectly as expected.

However when I hosted the web site in IIS Server version 7.5 , CSS and Image files are not shown in the website.

After a long research , Finally found that the Static Content handler is not enabled in the IIS Server.

After Enabling Static content , issue got fixed. Now the Images and CSS are shown in the Website as expected.

To Enable Static content Handler :

1. Open Turn Windows Features On or Off

2. Select Internet Information Services

3. Then World Wide Web Services

4. Under Common HTTP Features Check the Static Content,

5. Click Ok.

iis

 

Thanks for reading this article!! please leave your comments and suggestion about this article.