|
I use Mongo db C# driver 1.4.0.4468.
MongoDB it is installed as a windows service an a machine.
The command that I used to install the service is : "C:\Program Files (x86)\Ixia\ResourceManager\Mongodb\bin\mongod.exe" --journal --dbpath "C:\ProgramData\Ixia\ResourceManager\Storage\Database" --logpath "C:\ProgramData\Ixia\ResourceManager\Logs\mongod.log" --service --logappend"
When Windows network setting: "Receive Window Auto-Tuning Level" it is set to "experimental" value, no connections can be made to database using C# driver. To set this value you need to open an admin cmd and type command: netsh int tcp set global autotuninglevel=experimental
After mongodb service it is installed I test connectivity with the database.
I used MongoDB.Driver.MongoServer.Connect(TimeSpan timeout) method to test if mongodb server is started. Even this method has a timeout parameter, the execution hangs in this method.
You need to fix this problem and to have a time out mechanism to throw an error if no connection can be made.
I attached mongod.log and a capture file to see the packets sent.
|