Configuration evaluation context not found warning on WCF trace

后端 未结 2 790
滥情空心
滥情空心 2021-02-19 04:56

I have a set of WCF services hosted on a .NET 4 application. I manually create the ServiceHost class and start listening on TCP port. All works as expected but in the WCF trace

相关标签:
2条回答
  • 2021-02-19 05:28

    Did you take a look at that MSDN blog: Missing Binding Extensions?

    The evaluation context not found error (or in traces with the identifier System.ServiceModel.EvaluationContextNotFound) is generally caused by using a configuration element defined in a library that is not included in the application’s configuration as an extension.

    0 讨论(0)
  • 2021-02-19 05:29

    My experience is, you have to manually create service with service name and other details under tag.

    e.g.

      <system.serviceModel>
          <services>
              <service name="WCF_NameSpace.Service1" behaviorConfiguration="behave">
                  <endpoint address="" binding="basicHttpBinding" bindingConfiguration="bind" contract="WCF_Trace_2.IService1"></endpoint>
              </service>
          </services>
    
    0 讨论(0)
提交回复
热议问题