If you have found the problem, for others who might get this error.
It is likey a dll conflict. Some assemblies are using one version of the dll and others another. For example the ODP provider Oracle.DataAccess version 10.1.0.400 in one and 10.2.0.200 in another. Be sure you have referenced the same dll when adding references to projects IE namespaces.