Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6812407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:26:43+00:00 2026-05-26T20:26:43+00:00

I have been looking online for days trying to solve my problems and I

  • 0

I have been looking online for days trying to solve my problems and I cannot find anything which hints as to why I get this issue.

The exception is: System.ArgumentException: Invalid argument

I am using IBM.Data.Informix.dll version 9.0.0.2, the connection string has been through many permutations, but based on most examples from IBM and online this is what I have:

Database=testdb; Host=10.0.0.123; Server=test; Service=3013; User Id=testuser; Password=test123; Protocol=onsoctcp;

I have tried setting Service to the name of the service, I have removed it, even tried setting server to the IP rather than the Host. Whatever I do it just keeps coming up with a useless exception which doesn’t help at all in debugging.

I am using the IfxConnection class when instanciating:

using System.Data;
using IBM.Data.Informix;

namespace InformixTest
{
    public class InformixConnectionFactory : IConnectionFactory<IDbConnection>
    {
        private string connectionString;

        public InformixConnectionFactory(string connectionString)
        {
            this.connectionString = connectionString;
        }

        public IDbConnection GetConnection()
        {
            return new IfxConnection(connectionString);
        }
    }
}

Every time it steps into the new IfxConnection(connectionString) the exception is thrown, the connection string is injected via the web.config ConnectionStrings section. I am also targeting .net 4 incase this is a problem.

I was using the v9.5fp4_nt32_dsdriver_EN.exe installer to get the driver installed, I did read somewhere once that someone had a similar issue, so they installed the Informix Client SDK, which fixed their issue. I have also done the same but no such luck.

I am using the following sites as a reference for how my connection string should look:

http://www.ibm.com/developerworks/data/library/techarticle/dm-0510durity/
http://stackoverflow.com/questions/611345/connection-string-for-informix-for-net

Any help would be great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:26:44+00:00Added an answer on May 26, 2026 at 8:26 pm

    your connection string works on my machine. I had a lot of problem with IfxConnection because I also installed driver first. Then I unistalled drivers and client sdk, restart windows and installed client sdk again. Just in case I restarted windows again. That did it for me.

    Also, I think you should switch (if possible) to IBM Data Server .NET Provider for Informix because old informix driver won’t be enhanced any more. Look here for comparison:

    http://www.ibm.com/developerworks/data/library/techarticle/dm-1007dsnetids/index.html

    You will find that “Informix server support” and “Support for .NET framework 3.0, 3.5” features are quite important and old driver doesn’t support it. Also, article doesn’t mention that old driver doesn’t support database metadata retrieval.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking at examples online, and tutorials, and I cannot find anything
I have been looking at flex and bison tutorials online trying to solve my
I have been looking around online for an answer to this question for several
I have been looking following tutorials online for the past two days and I
I have been looking around online to try to find a complete solution but
I have been looking at paypal for a online transaction, but I wanted to
I have been looking to implement a custom class of : IList<ArraySegment<byte>> this will
I have been looking at LLVM lately, and I find it to be quite
I have been looking at LESS ( http://lesscss.org/ ) which adds variables and macro
I'm needing some help with mod rewriting. I have been looking online for the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.