title: C# VS2010 Win7 64-bit iSeries Access ODBC Driver Communication link failure
body: <p>I'm having a problem upgrading a c# app from WinXP to Win7 64 bit. The app queries data from our iSeries.  I've set up a 64 bit ODBC DSN, which works if I try from within MS Access.  But, when I try to establish a connection in the C# code, I'm getting the following error:</p>
  
  <blockquote>
    <p>ERROR [08S01] [IBM][iSeries Access ODBC Driver]Communication link failure. comm rc=10022 - CWBCO1003 - Sockets error, function  returned 10022</p>
  </blockquote>
  
  <p>My connection code is as follows:</p>
  
  <pre><code>cn = new OdbcConnection("dsn=as400data;UID=user;PWD=password;");
  cmd = new OdbcCommand(sql, cn);
  cn.Open();
  </code></pre>
  
  <p>Anyone have any ideas as to what may be raising this error?</p>