none
Visual Studio 2013 - During debug mode, some WCF sockets starts throwing exceptions RRS feed

  • Question

  • Operating System Windows 10

    Problem.

    Visual Studio 2013 - During debug mode, some WCF sockets starts throwing exceptions. But if I detach all processors from the debug mode, the system run as expected. 

    Any help on this is appreciated. 

    Regards

    Sandy

    The actual error.

    System.ServiceModel.CommunicationException

    The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '10675199.02:48:05.4775807'

    Stack trace

    Server stack trace:

       at System.ServiceModel.Channels.HttpInput.WebResponseHttpInput.WebResponseInputStream.Read(Byte[] buffer, Int32 offset, Int32 count)

       at System.ServiceModel.Channels.MessageEncoder.BufferMessageStream(Stream stream, BufferManager bufferManager, Int32 maxBufferSize)

       at System.ServiceModel.Channels.MessageEncoder.ReadMessage(Stream stream, BufferManager bufferManager, Int32 maxBufferSize, String contentType)

       at System.ServiceModel.Channels.HttpInput.ReadChunkedBufferedMessage(Stream inputStream)

       at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(HttpRequestMessage httpRequestMessage, Exception& requestException)

       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at SDO.Interfaces.WES.Security.ISecurityIntegrationServiceV1.GetClosePricesForTheMostRecentTradeDate(GetClosePricesForTradeDateV1Rq Request)

       at SDO.Interfaces.WES.Security.SecurityIntegrationServiceV1Client.GetClosePricesForTheMostRecentTradeDate(GetClosePricesForTradeDateV1Rq Request) in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Interfaces\Service References\WES.Security\Reference.cs:line 1667

       at SDO.Services.TradingDays.TradingDaysService.<GetMostRecentMarketDay>b__6() in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\TradingDays\TradingDaysService.cs:line 121

       at SDO.Services.ServiceBase.GetDataWithCaching[T](Func`1 service, String cacheKey, CacheLifeSpan cacheLifeSpan, CacheUseFlag cacheUseFlag) in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\ServiceBase.cs:line 90

       at SDO.Services.TradingDays.TradingDaysService.GetMostRecentMarketDay(CacheUseFlag useCachedData) in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\TradingDays\TradingDaysService.cs:line 118

       at SDO.Services.TradingDays.TradingDaysService.GetMostRecentMarketDay() in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\TradingDays\TradingDaysService.cs:line 113

       at SDO.Services.Portfolio.PortfolioService.GetPortfolioSummaryForMember(MemberObject member, Int32 portfolioId, Func`1 portfolioGetter, Func`1 allPortfoliosGetter) in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\Portfolio\PortfolioService.cs:line 1318

       at SDO.Services.Portfolio.PortfolioService.GetPortfolioSummaryForMember(MemberObject member, PortfolioObject portfolio, IEnumerable`1 allPortfolios) in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\Portfolio\PortfolioService.cs:line 1305

       at SDO.Services.Portfolio.PortfolioService.<>c__DisplayClass8.<GetPortfoliosForMember>b__3(PortfolioObject p) in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\Portfolio\PortfolioService.cs:line 121

       at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()

       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

       at SDO.Services.Portfolio.PortfolioUpdatesService.GetPortfolioCompaniesUpdates(MemberObject member, DateTime occurredAfter, DateTime occurredBefore, Int32 limit) in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Services\Portfolio\PortfolioUpdatesService.cs:line 50

       at SDO.Web.Controllers.HomeController.GetPortfolioSummary() in d:\Lincoln\Source\StockDoctorBranch\src\SDO.Web\Controllers\HomeController.cs:line 120

       at lambda_method(Closure , ControllerBase , Object[] )

       at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)

       at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)

       at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)

       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()

       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)

       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()

       at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)

       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()

       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()

    Thursday, October 29, 2015 10:11 PM

Answers