CSDN越来越不稳定之三

博客文章详细描述了在访问CSDN时遇到的服务器错误,具体表现为'ServiceChannel'通信对象处于Faulted状态,导致服务无法正常通信。错误发生在尝试获取文章前后内容的代码段中,可能与CSDN的WCF缓存服务有关。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


Server Error in '/' Application.
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.

Source Error:


Line 60: <ul class="article_next_prev">
Line 61:     @if(true){
Line 62:         var prev = ArticleHelper.GetPrevArticle(article);
Line 63:         if (prev != null)
Line 64:         {


Source File: d:\website\newblog.csdn.net\Views\Article\_content.cshtml    Line: 62

Stack Trace:


[CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.]
   System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout) +648
   System.ServiceModel.Channels.ServiceChannelFactory.OnClose(TimeSpan timeout) +225
   System.ServiceModel.Channels.TypedServiceChannelFactory`1.OnClose(TimeSpan timeout) +56
   System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout) +872
   System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout) +872
   CSDN.BLOG.Helper.WcfCacheHelper.CallServiceFunc(Func`2 func) in e:\blog_site\newblog.csdn.net\trunk\src\Blog.Helper\Cache\WcfCacheHelper.cs:86
   CSDN.BLOG.Helper.WcfCacheHelper.GetPrevious(Int32 blogId, DateTime postTime) in e:\blog_site\newblog.csdn.net\trunk\src\Blog.Helper\Cache\WcfCacheHelper.cs:51
   CSDN.BLOG.Helper.ArticleHelper.GetPrevArticle(Article entity) in e:\blog_site\newblog.csdn.net\trunk\src\Blog.Helper\ArticleHelper.About.cs:50
   ASP._Page_Views_Article__content_cshtml.Execute() in d:\website\newblog.csdn.net\Views\Article\_content.cshtml:62
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +103
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +173
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +158
   ASP._Page_Views_Article_Details_cshtml.Execute() in d:\website\newblog.csdn.net\Views\Article\Details.cshtml:47
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +103
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +143
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +157
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +681296
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +681532
   System.Web.Mvc.Controller.ExecuteCore() +159
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +332
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +15
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +52
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值