启动 WCG 服务时出现 System.Configuration.ConfigurationErrorsException

Chr*_*son 1 .net wcf

此刻有些慌张。我正在尝试为客户安装软件更新,但不知何故我的 WCF 服务失败并给我一条我以前从未见过的错误消息。有没有人有任何想法?

日志名称:应用程序
来源:.NET 运行时
日期:2014-01-03 16:03:36
事件 ID:1026
任务类别:无
级别:错误
关键词:经典
用户:不适用
计算机:SERVER.NM.LOCAL
描述:
应用程序:MyApp.Web.Trading.WindowsServiceHost.exe
框架版本:v4.0.30319
描述:进程因未处理的异常而终止。
异常信息:System.Configuration.ConfigurationErrorsException
堆:
   在 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(System.String, Boolean, Boolean, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
   在 System.Configuration.BaseConfigurationRecord.GetSection(System.String)
   在 System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(System.String)
   在 System.Configuration.ConfigurationManager.GetSection(System.String)
   在 System.ServiceModel.Activation.AspNetEnvironment.UnsafeGetSectionFromConfigurationManager(System.String)
   在 System.ServiceModel.Activation.AspNetEnvironment.UnsafeGetConfigurationSection(System.String)
   在 System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(System.Configuration.ContextInformation, System.String)
   在 System.ServiceModel.Description.ConfigLoader.LookupService(System.String)
   在 System.ServiceModel.ServiceHostBase.ApplyConfiguration()
   在 System.ServiceModel.ServiceHostBase.InitializeDescription(System.ServiceModel.UriSchemeKeyedCollection)
   在 System.ServiceModel.ServiceHost.InitializeDescription(System.Type, System.ServiceModel.UriSchemeKeyedCollection)
   在 System.ServiceModel.ServiceHost..ctor(System.Type, System.Uri[])
   在 MyApp.Web.Trading.ServiceImplementations.Wcf.Start()
   在 System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   在 System.Threading.ThreadHelper.ThreadStart()

小智 5

这可能是由于一个错误的 .config 文件。你能检查一下并寻找错误构造的 xml 或开放标签吗?