locked
Windows 2016 server with .NET version 3.5 having issue with connecting to mongo 3.0 replicaSet RRS feed

  • Question

  • we are having mongo server version 3.0 and driver version 1.11.0.92 and windows server is 2016 I see other posts related to this but our code works well in Windows 2008 server with mongo version 3.0 and driver version is 1.11.0.92. But in 2016 windows Server we are facing application slowness and facing below issue which is logged in Appdynamics.(which is used for application monitoring)

    Unable to connect in the specified timeframe of '00:00:30'.
    at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.Void Discover(System.TimeSpan)()
    at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.Void EnsureInstanceManager(System.TimeSpan)()
    at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.MongoDB.Driver.MongoServerInstance ChooseServerInstance(MongoDB.Driver.ReadPreference)()
    at MongoDB.Driver.MongoServer.MongoDB.Driver.Internal.MongoConnection AcquireConnection(MongoDB.Driver.ReadPreference)()
    at MongoDB.Driver.MongoCursor`1+MongoCursorConnectionProvider.MongoDB.Driver.Internal.MongoConnection AcquireConnection()()
    at MongoDB.Driver.Operations.QueryOperation`1.MongoDB.Driver.Internal.MongoReplyMessage`1[TDocument] GetFirstBatch(MongoDB.Driver.Operations.IConnectionProvider)()
    at MongoDB.Driver.Operations.QueryOperation`1.System.Collections.Generic.IEnumerator`1[TDocument] Execute(MongoDB.Driver.Operations.IConnectionProvider)()
    at MongoDB.Driver.MongoCursor`1.System.Collections.Generic.IEnumerator`1[TDocument] GetEnumerator()()
    at Mongo.MongoUserPropertyResolver.Mongo.Entity.MongoUserProperty getUserProperty(Int64, Int64)()
    at log4net.Core.LogImpl.Error()

    And Mongo connection string looks like:

    mongodb://username:password@host1,host2,host3/dbname?ssl=true&replicaSet=replicatsetname

    We are trying to update windows 2008 to windows 2016 server

    Any help would be Appreciated great!


    • Edited by Bhuvanasaguni Thursday, November 28, 2019 9:35 AM
    • Moved by Dave PatrickMVP Thursday, November 28, 2019 12:09 PM looking for forums
    Thursday, November 28, 2019 9:23 AM

Answers

All replies