There are two alternative ways to make MongoDB Atlas work with xConnect.
mongodb://sa:12345@cluster0-shard-00-00-test.mongodb.net:27017,cluster0-shard-00-01-test.mongodb.net:27017,cluster0-shard-00-02-test.mongodb.net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin&retryWrites=true&w=majority
<dependentAssembly> <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.3.0"/> </dependentAssembly>
Note: For both of these ways it is necessary to use & instead of & to separate parameters in the xConnect connection string. For example:
instead of:
mongodb+srv://sa:12345@cluster0-test.mongodb.net/test?retryWrites=true&w=majority
use the following:
mongodb+srv://sa:12345@cluster0-test.mongodb.net/test?retryWrites=true&w=majority