c# - WCF 跟踪上未找到配置评估上下文警告

标签 c# .net wcf

我有一组托管在 .NET 4 应用程序上的 WCF 服务。我手动创建 ServiceHost 类并开始监听 TCP 端口。 一切都按预期工作,但在服务器端的 WCF 跟踪中,我收到以下警告。

未找到配置评估上下文。

XML 跟踪如下:

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
        <EventID>524312</EventID>
        <Type>3</Type>
        <SubType Name="Warning">0</SubType>
        <Level>4</Level>
        <TimeCreated SystemTime="2010-09-03T12:33:01.9404010Z" />
        <Source Name="System.ServiceModel" />
        <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />
        <Execution ProcessName="Server.Console.vshost" ProcessID="24612" ThreadID="10" />
        <Channel />
        <Computer>BAROLO</Computer>
    </System>
    <ApplicationData>
        <TraceData>
            <DataItem>
                <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning">
                    <TraceIdentifier>http://msdn.microsoft.com/it-IT/library/System.ServiceModel.EvaluationContextNotFound.aspx</TraceIdentifier>
                    <Description>Configuration evaluation context not found.</Description>
                    <AppDomain>Server.Console.vshost.exe</AppDomain>
                </TraceRecord>
            </DataItem>
        </TraceData>
    </ApplicationData>
</E2ETraceEvent>

知道警​​告的原因吗?

谢谢

最佳答案

您是否看过那个 MSDN 博客: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.

关于c# - WCF 跟踪上未找到配置评估上下文警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3636341/

相关文章:

c# - 将 MySQL 日期转换为长格式日期

c# - 具有多个 IEnumerable<T> 接口(interface)的类 - 如何处理非泛型方法?

c# - 如何在ServiceBus上通过sequenceNumber使用MessageReceiver.Receive方法

ios - AFNetworking POST 错误 3840

C#事件执行顺序(Unity3D游戏)

c# - 从文件读取 json 并反序列化总是返回 null

c# - 在命令中初始化属性

c# - WPF:获取 Child 在其父面板中的真实 'logical' 位置

entity-framework - WCF OData 服务和 EF 6 问题 - 无法使用 Odata 服务公开实体

wcf - 以 WCF Web 服务作为数据源的 Crystal Reports