The problem is that dotConnect assemblies are running in 2.0 runtime, which provides some inconveniences. For example, it is not possible to change environment variables for dotConnect from inside .NET 4 runtime.