• Sign in
 
  •  
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...
Common Tasks
  • Blog Home
  • Email Blog Author
  • RSS for comments
  • RSS for posts
Search
Tags
  • .NET Framework
  • Ajax/Javascript
  • ARR
  • ASP.NET
  • CLR
  • Cool stuff
  • DataAccess
  • Debugging/Windbg
  • Hotfix/Service Pack
  • IDEVDataCollector
  • IIS
  • Internet Explorer
  • Italian techs
  • LogParser
  • OT
  • Personal
  • Productivity
  • Random
  • Scripting/ASP
  • Security
  • Technology
  • Tools
  • Troubleshooting
  • Vista/Longhorn
  • Visual Studio
Archives
Archives
  • January 2013 (2)
  • November 2010 (1)
  • October 2010 (1)
  • July 2010 (2)
  • April 2010 (1)
  • March 2010 (2)
  • February 2010 (2)
  • January 2010 (1)
  • October 2009 (2)
  • September 2009 (2)
  • August 2009 (1)
  • July 2009 (5)
  • June 2009 (1)
  • May 2009 (1)
  • April 2009 (3)
  • March 2009 (3)
  • February 2009 (5)
  • January 2009 (3)
  • December 2008 (5)
  • November 2008 (3)
  • October 2008 (2)
  • September 2008 (3)
  • August 2008 (3)
  • July 2008 (3)
  • June 2008 (5)
  • May 2008 (4)
  • April 2008 (8)
  • March 2008 (4)
  • February 2008 (5)
  • January 2008 (2)
  • December 2007 (4)
  • November 2007 (6)
  • October 2007 (6)
  • September 2007 (8)
  • August 2007 (6)
  • July 2007 (7)
  • June 2007 (10)
  • May 2007 (9)
  • April 2007 (12)
  • March 2007 (8)
  • February 2007 (5)
  • January 2007 (3)
  • December 2006 (1)
  • November 2006 (4)
  • October 2006 (2)
  • September 2006 (9)
  • August 2006 (2)
  • July 2006 (1)

“Service Unavailable” in IIS7 with 32 bit application pool

MSDN Blogs > Never doubt thy debugger > “Service Unavailable” in IIS7 with 32 bit application pool

“Service Unavailable” in IIS7 with 32 bit application pool

Carlo Cardella
4 Feb 2009 10:37 AM
  • Comments 9

As sometime happens, while setting up a repro for a customer (I’m working with him on a completely different problem) I wanted to test my sample code on a 32 bit w3wp.exe instance (I am running Windows 2008 x64); nothing easier on IIS7, just create a new application pool and change its “Enable 32.Bit Applications” property to true in IIS Manager and you’re done:

 Enable 32 bit application

But when I tried to run my code, I got this a “HTTP Error 503. The service is unavailable” message and the application pool was stopped. The Application event log contains a few entries like the following:

Log Name:      Application
Source:        Microsoft-Windows-IIS-W3SVC-WP
Date:          02/02/2009 14.19.05
Event ID:      2280
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      <computername>
Description: The Module DLL C:\Windows\system32\RpcProxy\RpcProxy.dll failed to load.  The data is the error.

I also got some of this warning:

Log Name:      System
Source:        Microsoft-Windows-WAS
Date:          03/02/2009 20.42.55
Event ID:      5139
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      <computername>
Description: A listener channel for protocol 'http' in worker process '4580' serving application pool '32bitPool' reported a listener channel failure.  The data field contains the error number

If I changed the application pool back to a 64 bit process, everything worked fine again.

I save you the tedious details, but the point is: RpcProxy.dll is 64 bit, obviously it cannot by loaded into a 32 bit process…

RpcProxy.dll

As I usually do as part of my “learning experience”, I installed all the available roles for IIS7 and one of them is “RPC over HTTP Proxy”:

RPC over HTTP

This installs RpcProxy.dll (and other files) and changes applicationHost.config adding a new global module:

<add name="PasswordExpiryModule" image="C:\Windows\system32\RpcProxy\RpcProxy.dll" />

How can I prevent IIS from loading it? Easy, just add the preCondition=”bitness64” attribute as follows:

<add name="PasswordExpiryModule" image="C:\Windows\system32\RpcProxy\RpcProxy.dll" preCondition="bitness64" />

Bingo, I finally have my 32 bit worker process up and running! Nerd smile

 

 Carlo

Quote of the day:
We are born charming, fresh and spontaneous and must be civilized before we are fit to participate in society – Judith Martin
  • 9 Comments
IIS
Leave a Comment
  • Please add 1 and 2 and type the answer here:
  • Post
Comments
  • ???Service Unavailable??? in IIS7 with 32 bit application pool &raquo; Click &amp; Solve
    4 Feb 2009 1:50 PM

    PingBack from http://www.clickandsolve.com/?p=3604

  • Never doubt thy debugger
    5 Feb 2009 11:31 AM

    Getting feedback always nice, as it is getting suggestions about new posts as happened this morning with

  • Isha
    20 Mar 2009 1:50 PM

    Nice one carloc..this resolved one of my customer's issue (m with IIS team MS) ..thanks

  • Sílvia
    29 Apr 2009 3:44 PM

    Fou me it didn´t work... I change in applicationHost.config and when I try to change to 32bits give me an error in the file. Please can you help me

    Sílvia

  • Carlo Cardella
    30 Apr 2009 2:24 AM

    Silvia, which error do you get exactly? Anything in the event log?

  • Andy Sinclair
    2 Oct 2009 8:12 AM

    Thanks so much, it resolved my issue!

  • Manfred
    19 Oct 2009 8:38 AM

    Thank you a lot

    This saved me a lot of time

  • Miles Thornton
    30 Dec 2009 7:07 AM

    Thank you so much for posting this! You just saved my bacon! I too had made this seemingly innocuous change and my application pools began crashing! Our webmail went down; what a mess!

    Anyway, thanks again - for the post and the clear explanation!

  • SamSalman
    6 Apr 2011 4:26 AM

    Thanks Man..

    I have been Finding th Solution of this problem in many forums but. I couldn't Find.

    But U saved my Life.

    Thanks

    Regards

Page 1 of 1 (9 items)
  • © 2013 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy & Cookies
  • Report Abuse
  • 5.6.426.415