IBM Support

Exception: Unable to find the requested .Net Framework Data Provider

Troubleshooting


Problem

You are attempting to execute the following statement within your .NET application code: DbProviderFactory factory = DbProviderFactories.GetFactory("IBM.Data.Informix");

Symptom

The following exception is thrown:

"Unable to find the requested .Net Framework Data Provider. It may not
be installed."

Cause

The machine.config file is not getting updated properly after installing the .NET provider as part of IBM Informix Client SDK.

Environment

Windows

Resolving The Problem

To resolve the problem, you can manually edit the machine.config file and add the following 2 entries:

For .Net 2.0:
<DbProviderFactories>
  <add name="IBM Informix .NET Data Provider" invariant="IBM.Data.Informix" 
  description="IBM Informix Data Provider for .NET Framework 2.0" 
         type="IBM.Data.Informix.IfxFactory, IBM.Data.Informix, Version=3.0.0.2, 
  Culture=neutral, PublicKeyToken=7c307b91aa13d208"/>
</DbProviderFactories>

For .Net 4.0:

<DbProviderFactories>
  <add name="IBM Informix .NET Data Provider" invariant="IBM.Data.Informix" 
  description="IBM Informix Data Provider for .NET Framework 4.0" 
         type="IBM.Data.Informix.IfxFactory, IBM.Data.Informix, Version=4.0.0.0,
  Culture=neutral, PublicKeyToken=7c307b91aa13d208"/>
</DbProviderFactories>

[{"Product":{"code":"SSVT2J","label":"Informix Tools"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Informix Client Software Development Kit (CSDK)","Platform":[{"code":"PF033","label":"Windows"}],"Version":"4.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

More support for:
Informix Tools

Software version:
4.1

Operating system(s):
Windows

Document number:
513413

Modified date:
16 February 2023

UID

swg21675964

Manage My Notification Subscriptions