I have designed a C# application using Visual Studio 2010 with .NET framework 4.0 and it works well on my PC. I used an DLL to connect the Oracle DB. I created a Setup project for my application to deploy it, when I tried to install the application on a second PC, it asked me to install the .NET Framework client, and I have installed it. After that when I tried to run my application it works but each time the code try to call a function from The DLL it throws an exception:
System.IO.FileLoadException: Could not load file or assembly 'System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies
I added the DLL to the setup file, but it didn't work. I have tried to add this code to my config file:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="System.Data.OracleClient" fullName="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblyBinding>
</runtime>
But it didn't work too. Any help, please.