I have connection string
<add key="MongoDBConnectionString" value="mongodb://user:password@123@127.0.0.1/?safe=true"/>
password is password@123
so host is parsing 123@127.0.0.1, how can i handle @ in credential
Edit
I have tried to escape it but still same problem
<add key="MongoDBConnectionString" value="mongodb://user:password@123@127.0.0.1/?safe=true"/>
Edit
Thanks to alexjamesbrown for helping, following escaping working for me.
<add key="MongoDBConnectionString" value="mongodb://user:password%40123@127.0.0.1/?safe=true"/>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…