MEX Connection Problem using WCF Test Client

  • Thread starter mdmurphy-techresources.com
  • Start date
M

mdmurphy-techresources.com

Hi,

I am having a problem sucessfully running SvcUtil with the App.config
file below. So I started tracing the WCF Test Client and came up with
the Thrown Exception. I've included the XML of the exception below. As
you can see, somehow it is looling for 'http://localhost:5000/
PPTConversionService/mex/mex'

Can someone tell me where is that coming from? And why I am getting
this error.

Note: This error does not prevent me from successfully executing the
PPTConversionServcie Method in the WCF Test Client.

Thanks

Murph

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<system.diagnostics>

<sources>

<source name="System.ServiceModel" switchValue="Warning,
ActivityTracing"

propagateActivity="true">

<listeners>

<add type="System.Diagnostics.DefaultTraceListener" name="Default">

<filter type="" />

</add>

<add name="ServiceModelTraceListener">

<filter type="" />

</add>

</listeners>

</source>

</sources>

<sharedListeners>

<add initializeData="c:\documents and settings\mmurphy.vdc2\my
documents\visual studio 2008\projects\onstreamwcflib\onstreamwcflib
\app_tracelog.svclog"

type="System.Diagnostics.XmlWriterTraceListener, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

name="ServiceModelTraceListener" traceOutputOptions="Timestamp,
ProcessId, ThreadId">

<filter type="" />

</add>

</sharedListeners>

</system.diagnostics>

<appSettings>

<add key="iSpringFlashVersion" value="7"/>

<add key="iSpringThumbnailWidth" value="128"/>

<add key="iSpringThumbnailHeight" value="96"/>

<add key="iSpringThumbnailQaulityPCT" value="75"/>

<add key="iSpringThumbnailPrefix" value="Slide"/>

</appSettings>

<system.web>

<compilation debug="true" />

</system.web>

<!-- When deploying the service library project, the content of the
config file must be added to the host's

app.config file. System.Configuration does not support config files
for libraries. -->

<system.serviceModel>

<bindings />

<services>

<service
behaviorConfiguration="OnstreamWCFLib.PPTConversionServiceBehavior"

name="OnstreamWCFLib.PPTConversionService">

<clear />

<endpoint address="http://localhost:8082/PPTConversionService/"

binding="wsHttpBinding" name="wsHttpEndpoint"
contract="OnstreamWCFLib.IPPTConversionService"

listenUriMode="Explicit" />

<endpoint address="http://localhost:5000/PPTConversionService/mex"

binding="mexHttpBinding" name="mexHttpEndpoint"
contract="IMetadataExchange"

listenUriMode="Explicit" />

<endpoint address="net.tcp://localhost:8081/PPTConversionService"

binding="netTcpBinding" name="netTcpEndpoint"
contract="OnstreamWCFLib.IPPTConversionService"

listenUriMode="Explicit" />

<endpoint address="http://localhost:8080/PPTConversionService/"

binding="basicHttpBinding" name="basicHttpEndpoint"
contract="OnstreamWCFLib.IPPTConversionService"

listenUriMode="Explicit" />

<host>

<baseAddresses>

<add baseAddress="http://localhost:8080/PPTConversionService" />

<add baseAddress="net.tcp://localhost:8081/PPTConversionService" />

</baseAddresses>

</host>

</service>

</services>

<behaviors>

<serviceBehaviors>

<behavior name="OnstreamWCFLib.PPTConversionServiceBehavior">

<!-- To avoid disclosing metadata information,

set the value below to false and remove the metadata endpoint above
before deployment -->

<serviceMetadata httpGetEnabled="True" httpGetUrl="http://localhost:
5000/PPTConversionService"/>

<!-- To receive exception details in faults for debugging purposes,

set the value below to true. Set to false before deployment

to avoid disclosing exception information -->

<serviceDebug includeExceptionDetailInFaults="True" />

</behavior>

</serviceBehaviors>

</behaviors>

</system.serviceModel>

</configuration>

==============================

XML listing of Exception copied from Trace File:

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/
E2ETraceEvent">

<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/
system">

<EventID>131075</EventID>

<Type>3</Type>

<SubType Name="Error">0</SubType>

<Level>2</Level>

<TimeCreated SystemTime="2008-05-30T15:27:37.6746878Z" />

<Source Name="System.ServiceModel" />

<Correlation ActivityID="{d5a9c76c-861f-4d01-a354-97ca7e4c8949}" />

<Execution ProcessName="WcfSvcHost" ProcessID="1008" ThreadID="7" />

<Channel />

<Computer>PB-DEV-MM</Computer>

</System>

<ApplicationData>

<TraceData>

<DataItem>

<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/
TraceRecord" Severity="Error">

<TraceIdentifier>http://msdn.microsoft.com/en-US/library/
System.ServiceModel.Diagnostics.ThrowingException.aspx</
TraceIdentifier>

<Description>Throwing an exception.</Description>

<AppDomain>C:\Documents and Settings\mmurphy.VDC2\My Documents\Visual
Studio 2008\Projects\OnstreamWCFLib\OnstreamWCFLib\bin
\OnstreamWCFLib.dll.config</AppDomain>

<Exception>

<ExceptionType>System.ServiceModel.FaultException,
System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089</ExceptionType>

<Message>The message with To 'http://localhost:5000/
PPTConversionService/mex/mex' cannot be processed at the receiver, due
to an AddressFilter mismatch at the EndpointDispatcher. Check that the
sender and receiver's EndpointAddresses agree.</Message>

<StackTrace>

at
System.ServiceModel.Dispatcher.ErrorBehavior.ThrowAndCatch(Exception
e, Message message)

at
System.ServiceModel.Dispatcher.ChannelHandler.ReplyFailure(RequestContext
request, Message fault, String action, String reason, FaultCode code)

at
System.ServiceModel.Dispatcher.ChannelHandler.ReplyFailure(RequestContext
request, FaultCode code, String reason, String action)

at
System.ServiceModel.Dispatcher.ChannelHandler.ReplyFailure(RequestContext
request, FaultCode code, String reason)

at
System.ServiceModel.Dispatcher.ChannelHandler.ReplyAddressFilterDidNotMatch(RequestContext
request)

at
System.ServiceModel.Dispatcher.ChannelHandler.EnsureChannelAndEndpoint(RequestContext
request)

at
System.ServiceModel.Dispatcher.ChannelHandler.TryRetrievingInstanceContext(RequestContext
request)

at
System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext
request, OperationContext currentOperationContext)

at
System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult
result)

at
System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(IAsyncResult
result)

at
System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult
result)

at System.ServiceModel.AsyncResult.Complete(Boolean
completedSynchronously)

at System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item
item)

at System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item
item, Boolean canDispatchOnThisThread)

at System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T
item, ItemDequeuedCallback dequeuedCallback, Boolean
canDispatchOnThisThread)

at
System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDisposable
item, ItemDequeuedCallback dequeuedCallback, Boolean
canDispatchOnThisThread)

at
System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType
item, ItemDequeuedCallback dequeuedCallback, Boolean
canDispatchOnThisThread)

at
System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext
context, ItemDequeuedCallback callback)

at
System.ServiceModel.Channels.SharedHttpTransportManager.OnGetContextCore(IAsyncResult
result)

at
System.ServiceModel.Channels.SharedHttpTransportManager.OnGetContext(IAsyncResult
result)

at
System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult
result)

at System.Net.LazyAsyncResult.Complete(IntPtr userToken)

at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result,
IntPtr userToken)

at System.Net.ListenerAsyncResult.WaitCallback(UInt32 errorCode,
UInt32 numBytes, NativeOverlapped* nativeOverlapped)

at
System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

</StackTrace>

<ExceptionString>System.ServiceModel.FaultException: The message with
To 'http://localhost:5000/PPTConversionService/mex/mex' cannot be
processed at the receiver, due to an AddressFilter mismatch at the
EndpointDispatcher. Check that the sender and receiver's
EndpointAddresses agree.</ExceptionString>

</Exception>

</TraceRecord>

</DataItem>

</TraceData>

</ApplicationData>
 

My Computer

Top