“/”应用程序中的服务器错误。

由于目标计算机积极拒绝,无法连接。 139.196.237.226:27017

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 139.196.237.226:27017

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[SocketException (0x274d): 由于目标计算机积极拒绝,无法连接。 139.196.237.226:27017]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +255
   System.Net.Sockets.Socket.Connect(EndPoint remoteEP) +153
   System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP) +88
   MongoDB.Driver.Internal.MongoConnection.Open() in C:\build\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:375
   MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage message, WriteConcern writeConcern, String databaseName) in C:\build\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:525
   MongoDB.Driver.Internal.MongoConnection.RunCommand(String databaseName, QueryFlags queryFlags, CommandDocument command, Boolean throwOnError) in C:\build\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:425
   MongoDB.Driver.MongoServerInstance.Ping(MongoConnection connection) in C:\build\mongo-csharp-driver\Driver\Core\MongoServerInstance.cs:695
   MongoDB.Driver.MongoServerInstance.Connect() in C:\build\mongo-csharp-driver\Driver\Core\MongoServerInstance.cs:468
   MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Internal\DirectMongoServerProxy.cs:149

[MongoConnectionException: Unable to connect to server 139.196.237.226:27017: 由于目标计算机积极拒绝,无法连接。 139.196.237.226:27017.]
   MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Internal\DirectMongoServerProxy.cs:174
   MongoDB.Driver.Internal.DirectMongoServerProxy.ChooseServerInstance(ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Internal\DirectMongoServerProxy.cs:115
   MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Core\MongoServer.cs:1057
   MongoDB.Driver.MongoCursorEnumerator`1.AcquireConnection() in C:\build\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:299
   MongoDB.Driver.MongoCursorEnumerator`1.GetFirst() in C:\build\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:312
   MongoDB.Driver.MongoCursorEnumerator`1.MoveNext() in C:\build\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:230
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +452
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +70
   HF.DataAccess.OnlineClassDataAccess.GetOnlineClassBySysNo(String objectId) +319
   HF.Business.OnlineClassBusiness.GetOnlineClassInfoBySysNo(String objectId) +107
   www.jpwind.com.Controllers.CourseController.Detail() +443
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +280
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +33
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +80
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +386
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +386
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +32
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +185
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +27
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +22
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +22
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +399
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +137


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.6.1055.0