# Setup: Oracle: WorkflowGen Windows Service Error "Attempt to load Oracle client libraries threw BadImageFormatException"

**URL:** <https://discuss.workflowgen.com/t/setup-oracle-workflowgen-windows-service-error-attempt-to-load-oracle-client-libraries-threw-badimageformatexception/136>\
**Category:** Installation\
**Created:** [July 10, 2014, 5:17am UTC](https://discuss.workflowgen.com/t/setup-oracle-workflowgen-windows-service-error-attempt-to-load-oracle-client-libraries-threw-badimageformatexception/136 "2014-07-10T05:17:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [July 10, 2014, 5:17am UTC](https://discuss.workflowgen.com/t/setup-oracle-workflowgen-windows-service-error-attempt-to-load-oracle-client-libraries-threw-badimageformatexception/136/1 "2014-07-10T05:17:41Z")

</div>

**Note:** This applies to WorkflowGen version 5.x.

**Issue**

WorkflowGen Windows Service running with an Oracle database triggers the following error 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.

**Solution**

As indicated in the error message, your WorkflowGen Windows services are running in 64-bit and try to load 32-bit Oracle client components.

Possible solutions:

1. Install the 64-bit Oracle client provider to replace the 32-bit version.

2. Force the WFG services to run in 32 bit using the CorFlags Conversion Tool (see [http://msdn.microsoft.com/en-us/library/ms164699(v=vs.110).aspx](http://msdn.microsoft.com/en-us/library/ms164699(v=vs.110).aspx)).

As well, you have to make sure the COM+ components are installed and registered properly when migrating to a 64-bit system.
