none
WCF Web.Config 的奇葩问题 RRS feed

  • 问题

  • 配置文件不正确 System.Configuration.ConfigurationErrorsException: 无法加载为扩展“Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior”注册的类型“Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior, Microsoft.VisualStudio.Diagnostics.ServiceModelSink, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”。 (C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line 232)
       在 System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
       在 System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
       在 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       在 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       在 System.Configuration.ContextInformation.GetSection(String sectionName)
       在 System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetSectionFromContext(ContextInformation evalContext, String sectionPath)
       在 System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath)
       在 System.ServiceModel.Configuration.CommonBehaviorsSection.UnsafeGetAssociatedSection(ContextInformation contextEval)
       在 System.ServiceModel.Description.ConfigLoader.LookupCommonBehaviors(ContextInformation context)
       在 System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
       在 System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)
       在 System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
       在 System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
       在 System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
       在 System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
       在 System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
       在 System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
       在 System.ServiceModel.ClientBase`1..ctor()
       在 WindowLoding.ClientUserServiceReference.WebPostUserServiceClient..ctor()
       在 WindowLoding.LodingMain.<>c__DisplayClass9.<LoadingService>b__7()

    有谁知道这个是什么问题么 ?

    2013年5月8日 8:20

答案

全部回复