Old issue but came up today and I needed to resolve in IIS7 on a Windows 2K8 server.

1. Inside IIS click on Application Pools.

2. Locate the Application Pool for your web application.

3. Right-click then Advanced Settings.

4. Change Enable 32-Bit Applications to True.