为了使用MongoDb,我在Azure中创建了一个AzureCosmosDb帐户。
我得到了一个可以正常工作的连接字符串,但它以结尾/?ssl=true&replicaSet=globaldb。因此,我无法将其存储在web.config文件的connectionStrings部分中。它说 :
Entity 'replicaSet' not defined
Expecting ;
Application Configuration file "Web.config" is invalid. '=' is an unexpected token. The expected token is ';'.
Run Code Online (Sandbox Code Playgroud)
我不想将其存储在常量中,是否有办法使其正常工作?
谢谢。