ASP.NET - I am struggling with the setup of IIS7.5 for a 32bit web app run on a 64bit mode server

Asked By Kim Boarder on 18-Jul-12 09:57 AM
I get the following error when trying to run a website on Windows Server 2008. This is 32bit run on 64bit. I am using v4.0 with IIS7.5.

This currently works fine on 32bit machine using v2 and IIS 6. I am thinking it might have to do with my handler mappings.
Thanks in Advance

The description for Event ID 0 from source IEPtest cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

Message: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

Source: System.Data.OracleClient

Stack: at System.Data.OracleClient.OCI.DetermineClientVersion()

at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)

at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions)

at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)

at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)

at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)

at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

at System.Data.OracleClient.OracleConnection.Open()

at _Default.Login1_Authenticate(Object sender, AuthenticateEventArgs e) in C:\inetpub\wwwroot\IEPtest\login.aspx.vb:line 72

the message resource is present but the message is not found in the string/message table

Peter Bromberg replied to Kim Boarder on 18-Jul-12 04:01 PM
In IIS manager, choose the AppPool for your site and  set enable32BitAppOnWin64 true 
Kim Boarder replied to Peter Bromberg on 19-Jul-12 07:03 AM
unfortunately I already changed that to true.