MongoDB 3.0 about security authentication after using C # call encountered "System.timeoutexception" type of exception in MongoDB.Driver.Core.dll related issues

Source: Internet
Author: User
Tags mongodb version

An exception of type "System.timeoutexception" occurs in MongoDB.Driver.Core.dll, but is not processed in user code

To manipulate the MongoDB class library version:

----------------------------------------------


MongoDB.Driver.Core 2.3
Mongodb.bson 2.3

MongoDB version 3.0

Related changes to the connection string:

-----------------------------------------------

URL:MONGODB://127.0.0.1:27017 with no security certification

Plus safety certified Url:mongodb://[username]:[userpwd]@127.0.0.1:27017/[databasename]

The key change is the last specified database, if not specified, will be the default database

So when it comes to testing, it's usually mongodb://[username]:[userpwd]@127.0.0.1:27017.

Does not add a custom database name, resulting in an initial error.

MongoDB 3.0 about security authentication after using C # call encountered "System.timeoutexception" type of exception in MongoDB.Driver.Core.dll related issues

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.