Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1646

TcpStreamFactory.ConfigureConnectedSocket Exception

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.3
    • Component/s: Connectivity
    • Labels:
      None
    • Environment:
      windows server 2008r2

      the stack trace is :
      System.AggregateException: One or more errors occurred. ---> MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Net.Sockets.SocketException: 提供了一个无效的参数。 at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue, Boolean silent) at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue) at MongoDB.Driver.Core.Connections.TcpStreamFactory.ConfigureConnectedSocket(Socket socket) in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver.Core\Core\Connections\TcpStreamFactory.cs:line 65 at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateNetworkStream(Socket socket) in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver.Core\Core\Connections\TcpStreamFactory.cs:line 171 at MongoDB.Driver.Core.Connections.TcpStreamFactory.d_4.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver.Core\Core\Connections\TcpStreamFactory.cs:line 58 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at MongoDB.Driver.Core.Connections.BinaryConnection.d47.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver.Core\Core\Connections\BinaryConnection.cs:line 285 — End of inner exception stack trace — at MongoDB.Driver.Core.Connections.BinaryConnection.d47.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver.Core\Core\Connections\BinaryConnection.cs:line 296 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.Core.Servers.ClusterableServer.d40.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver.Core\Core\Servers\ClusterableServer.cs:line 242 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.d39.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver.Core\Core\Operations\BulkMixedWriteOperation.cs:line 204 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.OperationExecutor.d3`1.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver\OperationExecutor.cs:line 46 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.MongoCollectionImpl`1.d61`1.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver\MongoCollectionImpl.cs:line 759 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.MongoCollectionImpl`1.d22.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver\MongoCollectionImpl.cs:line 180 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.MongoCollectionBase`1.d39.MoveNext() in D:\jenkins\workspace\mongo-csharp-driver-2.2.x-build\src\MongoDB.Driver\MongoCollectionBase.cs:line 323 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Framework.Zhaogang.Job.Infrastructure.Data.MongoDB.Dao`1.d_a.MoveNext() in d:\VS Projects\git\JobCenter2\jobcenter\Framework.Zhaogang.Job.Infrastructure\Data\MongoDB\Dao.cs:line 137 — End of inner exception stack trace

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            slolitor slolitor
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: