配置评估方面没有发现对WCF跟踪警告 [英] Configuration evaluation context not found warning on WCF trace
问题描述
我有一组托管在.NET 4应用程序的WCF服务。我手动创建ServiceHost的类,并开始监听TCP端口。 所有的作品如预期,但在WCF跟踪在服务器端,我得到下面的警告。
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 on the server side I get the warning below.
配置评价范围内没有发现。
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>
有关警告的原因,你知道吗?
Any idea about the reason of the warning?
感谢
推荐答案
你看看这MSDN博客:的缺少绑定扩展?
Did you take a look at that MSDN blog: Missing Binding Extensions?
评估上下文没有发现错误(或在迹线与所述标识符System.ServiceModel.EvaluationContextNotFound)一般通过使用不包括在应用程序的配置作为扩展在一个库中定义的结构元件所引起的。
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.
这篇关于配置评估方面没有发现对WCF跟踪警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!