IBM iSeries Access for Windows Error

 

I created a sample application to call AS/400 API from .NET. when initializing the class as

cwbx.AS400System as400 = new cwbx.AS400SystemClass();
cwbx.Program program = new cwbx.Program();

got the following error

{"Retrieving the COM class factory for component with CLSID {86F9DB12-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154."}

I looks like that this version of library (11.0.0.1) is not compatible with 64-bit Windows Server 2008 R2.

The workaround is to change your application configuration to 32-bit from visual studio project properties

clip_image001

Advertisements

3 Responses to “IBM iSeries Access for Windows Error”

  1. Chandra Says:

    Retrieving the COM class factory for component with CLSID {86F9DB2D-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154.

    Hi, Changing fromAny CPU to x86 did not work for me. Any help? It runs fine on 32-bit computer. But required to run on 64-bit.

    Thanks

  2. Usman Shaheen Says:

    Hi,

    Try installing latest service pack for IBM iSeries Access for windows.
    what is the reason to run on 64-bit only? usually there are corresponding 32-bit processes available to host the dll.

    Thanks

  3. Marc Says:

    In your IIS advanced properties for the application pool that is running your website, set Enable 32 bit applications to true


Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: