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

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

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

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

源错误:

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

堆栈跟踪:


[SocketException (0x274d): 由于目标计算机积极拒绝,无法连接。 192.168.10.31:6379]
   System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port) +691
   System.Net.Sockets.Socket.Connect(String host, Int32 port) +160
   ServiceStack.Redis.RedisNativeClient.Connect() +256

[RedisException: could not connect to redis Instance at 192.168.10.31:6379]
   ServiceStack.Redis.RedisNativeClient.Connect() +1521
   ServiceStack.Redis.RedisNativeClient.AssertConnectedSocket() +313
   ServiceStack.Redis.RedisNativeClient.SendCommand(Byte[][] cmdWithBinaryArgs) +67
   ServiceStack.Redis.RedisNativeClient.SendExpectData(Byte[][] cmdWithBinaryArgs) +67
   ServiceStack.Redis.RedisNativeClient.GetBytes(String key) +275
   ServiceStack.Redis.RedisNativeClient.Get(String key) +56
   ServiceStack.Redis.RedisClient.GetValue(String key) +67
   ServiceStack.Redis.RedisClient.Get(String key) +197
   CacheRedis.CacheClient.ListNews(Int32 NewsCategoryID, Int32 count) +440
   BaiInfoWAP.Controllers.NewsController.NewsClass(Int32 id) +1795
   lambda_method(Closure , ControllerBase , Object[] ) +141
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +256
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +77
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +433
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +623
   System.Web.Mvc.Controller.ExecuteCore() +137
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +54
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +51
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


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