BAM Portal Configuration Error

When configuring the BAM portal on a x64 Environment I got this error and I had this previously but somehow forgot what was the fix.

Start registering ASP.NET scriptmap (2.0.50727) at W3SVC/2/Root/BAM.
Error when validating the IIS path (W3SVC/2/Root/BAM). Error code = 0x80040154
The error indicates that IIS is in 64 bit mode, while this application is a 32 bit application and thus not compatible.

To run the 32-Bit version of ASP.NET run the following command

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

You can find the commands on this KB article. After running the command set the Enable 32-Bit mode property to true of the application pool under which the BAM applications are running.

2 Responses to BAM Portal Configuration Error

  1. Lars says:

    Hi Abdul.
    This is also stated in the documentation here ->
    The cool thing that is NOT stated is that after configuring BAM, – if you run IIS 7.0 – you can just set the AppPool to run 32bit, and then you can set the IIS back to 64 bit but setting the Enable32bitAppOnWin64 back to 0. Thus you get the best of both worlds 🙂 They state that it is not needed on IIS 7, but that is not my experience.

  2. andreea says:

    Is a great job…Super

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s

%d bloggers like this: