access .mdb Not a valid file name.
<p>My program needs to connect to old access database .mdb using c#.
I have a trouble deploying the program. </p>

<p>Here is the scenario:</p>

<ul>
<li>all Machine were tested with access database engine x84bit and x64</li>
<li>all machine are 64bit operating system  All sum.mdb has the same directory</li>
<li>Development machine: No error - tested with all bit types of office  </li>
<li>Client A machine with office 64bit: No Error </li>
<li>Client B machine with office 32bit: No Error </li>
<li>Client C machine with office 64bit: Error: Not a valid file name </li>
<li>Client D machine with office 32bit: Error: Not a valid file name</li>
</ul>

<p>Here is the Error on C and D machines 
<a href="https://i.stack.imgur.com/lAALm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lAALm.png" alt="enter image description here"></a></p>

<p>I tried using .udl to detect the .mdb file but shows this error</p>

<p><a href="https://i.stack.imgur.com/LdCU7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LdCU7.jpg" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/pDg6x.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pDg6x.jpg" alt="enter image description here"></a></p>

<p>Here is my connection string </p>

<pre><code>accessProvider = "Microsoft.ACE.OLEDB.12.0";
accessDatasource =  file.ReadToEnd() + "\\" + "SUM.mdb" ;
accessPassword = "samplePassword";

accessString = @"Provider=" + accessProvider + "; " +
             "Data Source=" + accessDatasource + "; " +
             "Jet OLEDB:Database Password=" + accessPassword + ";";
            MessageBox.Show(accessString);
</code></pre>

<p><a href="https://i.stack.imgur.com/w09be.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w09be.jpg" alt="enter image description here"></a></p>