Store AzureCosmosDb connection string in web.config

Viewed 1311

I created an AzureCosmosDb account in Azure in order to use MongoDb.

I got a connection string that works perfectly but it ends by /?ssl=true&replicaSet=globaldb. So I am unable to store it in the connectionStrings section of my web.config file. It says :

Entity 'replicaSet' not defined
Expecting ;
Application Configuration file "Web.config" is invalid. '=' is an unexpected token. The expected token is ';'.

I don't want to store it in a constant so is there a way to make it work ?

Thanks.

1 Answers
Related