Error message: Unable to automatically debug service<span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">I have a duplex web service (hosted in IIS/Casini) which needs to be called both from Silverlight and from regular .NET code.  Consequently, it's listening on three different endpoints, with three different bindings: the new Silverlight PollingDuplexBindingElement, WSDualHttpBinding, and of course MexHttpBinding for exchanging metadata.  <br/><br/>I'm using a service factory to create the service like so:<br/><br/> <div style="background-color:white;color:black"> <pre> <span style="color:blue">protected</span> <span style="color:blue">override</span> <span style="color:blue">void</span> InitializeRuntime() { <span style="color:green">// Define the binding and set time-outs.</span> PollingDuplexBindingElement pdbe = <span style="color:blue">new</span> PollingDuplexBindingElement();<br/> <br/><br/> <span style="color:green">// Add an endpoint for the given service contract.&lt;br/&gt;</span> <span style="color:blue">this</span>.AddServiceEndpoint( <span style="color:blue">typeof</span>(IRoomService), <span style="color:blue">new</span> CustomBinding( pdbe, <span style="color:blue">new</span> BinaryMessageEncodingBindingElement(), <span style="color:blue">new</span> HttpTransportBindingElement()), <span style="color:#a31515">&quot;&quot;</span>).Behaviors.Add(<span style="color:blue">new</span> SilverlightFaultBehavior()); <span style="color:green">// This should listen at <a href="http://&lt;servername&gt;/services/RoomService.svc/wsdual&lt;br/&gt;">http://&lt;servername&gt;/services/RoomService.svc/wsdual&lt;br/&gt;</a> <span style="color:blue">this</span>.AddServiceEndpoint( <span style="color:blue">typeof</span>(IRoomService), <span style="color:blue">new</span> WSDualHttpBinding(WSDualHttpSecurityMode.Message), <span style="color:#a31515">&quot;wsdual&quot;</span>);<br/> <br/><br/> <span style="color:blue">this</span>.AddServiceEndpoint( <span style="color:blue">typeof</span>(IMetadataExchange), MetadataExchangeBindings.CreateMexHttpBinding(), <span style="color:#a31515">&quot;mex&quot;</span>);<br/> <br/> <span style="color:blue">base</span>.InitializeRuntime(); } </span> </pre> </div> <br/>Initially, I only had the PollingduplexBindingElement on the service, and everything worked fine.  But then I added the WSDualHttpBinding, and although calls over both bindings seem to work correctly, when I debug the solution from within Visual Studio (using the built-in Cassini web server), I get the following error message after the first web service call:<br/><br/>&quot;Unable to automatically debug 'SlideLinc.Service'.  The remote procedure could not be debugged.  This usually indicates that debugging has not been enabled on the server.  See help for more information.&quot;<br/><br/>When this message shows up, breakpoints don't get hit, and Debug.WriteLine() messages don't appear in my Visual Studio output window.<br/><br/>The standard advice for this error message is to make sure that web.config has &lt;compilation debug=&quot;true&quot;&gt; in it, which it does:<br/><br/> <div style="background-color:white;color:black"> <pre> <span style="color:blue">&lt;</span><span style="color:#a31515">system.web</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">compilation</span> <span style="color:red">debug</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">assemblies</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">add</span> <span style="color:red">assembly</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">add</span> <span style="color:red">assembly</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">assemblies</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">compilation</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">system.web</span><span style="color:blue">&gt;</span> </pre> </div> The gentleman experiencing a similar problem on this thread here (</span> </span><a href="wcf/thread/fed739a7-d564-46c1-b2d5-603eb408895a">http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/fed739a7-d564-46c1-b2d5-603eb408895a</a> ) turned out to have triggered the problem by calling the MEX portion of the service with an incorrect address.  I'm not doing that, and I double-checked the values at which the endpoints are listening, and to which the calls are being made, and they all seem to be correct.<br/><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px"><br/>I've also seen some suggestions to run various flavors of &quot;</span> </span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="text-align:left;line-height:18px;border-collapse:collapse;font-family:Arial;font-size:14px">vsdiag_regwcf.exe -u</span> </span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">&quot;, but I'm not interested in making the message go away: I'm interested in actually debugging the service.<br/><br/></span></span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">I looked through a service trace with the Microsoft Service Trace Viewer, but I wasn't able to spot any obvious errors.<br/><br/></span></span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">It's not an issue with my Visual Studio configuration, as returning to the state of the code before I added the WSDualHttpBinding fixes the problem.<br/><br/>In other words, the problem appears to show up (for me, at least) when I have two different duplex endpoints bound to the same service.<br/><br/>Any thoughts or suggestions on how to tackle this?<br/><br/>Thanks in advance.<br/><br/>For what it's worth, I'm attaching the relevant portions of the web.config for my service:<br/><br/> <div style="background-color:white;color:black"> <pre> <span style="color:blue">&lt;</span><span style="color:#a31515">system.serviceModel</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;!--</span><span style="color:green"> ks: aspNetCompatibility is required for sharing state between WCF and ASP.NET </span><span style="color:blue">--&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceHostingEnvironment</span> <span style="color:red">aspNetCompatibilityEnabled</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">bindings</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">bindings</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">extensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behaviorExtensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">add</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">silverlightFaults</span><span style="color:black">&quot;</span> <span style="color:red">type</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.SilverlightFaultBehavior, SlideLinc.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behaviorExtensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">extensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">endpointBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behavior</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SilverlightFaultBehavior</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">silverlightFaults</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behavior</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">endpointBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behavior</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.RoomServiceBehavior</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceMetadata</span> <span style="color:red">httpGetEnabled</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceDebug</span> <span style="color:red">includeExceptionDetailInFaults</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">dataContractSerializer</span> <span style="color:red">maxItemsInObjectGraph</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">2147483646</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behavior</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">serviceBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">services</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">service</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.RoomService</span><span style="color:black">&quot;</span> <span style="color:red">behaviorConfiguration</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.RoomServiceBehavior</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">services</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">diagnostics</span> <span style="color:red">performanceCounters</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">All</span><span style="color:black">&quot;</span> <span style="color:red">wmiProviderEnabled</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">messageLogging</span> <span style="color:red">logEntireMessage</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">logMalformedMessages</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">logMessagesAtServiceLevel</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">logMessagesAtTransportLevel</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">maxMessagesToLog</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">100000</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">diagnostics</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">system.serviceModel</span><span style="color:blue">&gt;</span> </pre> </div> <br/><br/><br class=Apple-interchange-newline></span></span> <hr class=sig> Ken Smith© 2009 Microsoft Corporation. All rights reserved.Sat, 19 Sep 2009 04:40:46 Zade0dd72-96ae-445c-8e72-b2e625571d51http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#ade0dd72-96ae-445c-8e72-b2e625571d51http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#ade0dd72-96ae-445c-8e72-b2e625571d51Ken Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug service<span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">I have a duplex web service (hosted in IIS/Casini) which needs to be called both from Silverlight and from regular .NET code.  Consequently, it's listening on three different endpoints, with three different bindings: the new Silverlight PollingDuplexBindingElement, WSDualHttpBinding, and of course MexHttpBinding for exchanging metadata.  <br/><br/>I'm using a service factory to create the service like so:<br/><br/> <div style="background-color:white;color:black"> <pre> <span style="color:blue">protected</span> <span style="color:blue">override</span> <span style="color:blue">void</span> InitializeRuntime() { <span style="color:green">// Define the binding and set time-outs.</span> PollingDuplexBindingElement pdbe = <span style="color:blue">new</span> PollingDuplexBindingElement();<br/> <br/><br/> <span style="color:green">// Add an endpoint for the given service contract.&lt;br/&gt;</span> <span style="color:blue">this</span>.AddServiceEndpoint( <span style="color:blue">typeof</span>(IRoomService), <span style="color:blue">new</span> CustomBinding( pdbe, <span style="color:blue">new</span> BinaryMessageEncodingBindingElement(), <span style="color:blue">new</span> HttpTransportBindingElement()), <span style="color:#a31515">&quot;&quot;</span>).Behaviors.Add(<span style="color:blue">new</span> SilverlightFaultBehavior()); <span style="color:green">// This should listen at <a href="http://&lt;servername&gt;/services/RoomService.svc/wsdual&lt;br/&gt;">http://&lt;servername&gt;/services/RoomService.svc/wsdual&lt;br/&gt;</a> <span style="color:blue">this</span>.AddServiceEndpoint( <span style="color:blue">typeof</span>(IRoomService), <span style="color:blue">new</span> WSDualHttpBinding(WSDualHttpSecurityMode.Message), <span style="color:#a31515">&quot;wsdual&quot;</span>);<br/> <br/><br/> <span style="color:blue">this</span>.AddServiceEndpoint( <span style="color:blue">typeof</span>(IMetadataExchange), MetadataExchangeBindings.CreateMexHttpBinding(), <span style="color:#a31515">&quot;mex&quot;</span>);<br/> <br/> <span style="color:blue">base</span>.InitializeRuntime(); } </span> </pre> </div> <br/>Initially, I only had the PollingduplexBindingElement on the service, and everything worked fine.  But then I added the WSDualHttpBinding, and although calls over both bindings seem to work correctly, when I debug the solution from within Visual Studio (using the built-in Cassini web server), I get the following error message after the first web service call:<br/><br/>&quot;Unable to automatically debug 'SlideLinc.Service'.  The remote procedure could not be debugged.  This usually indicates that debugging has not been enabled on the server.  See help for more information.&quot;<br/><br/>When this message shows up, breakpoints don't get hit, and Debug.WriteLine() messages don't appear in my Visual Studio output window.<br/><br/>The standard advice for this error message is to make sure that web.config has &lt;compilation debug=&quot;true&quot;&gt; in it, which it does:<br/><br/> <div style="background-color:white;color:black"> <pre> <span style="color:blue">&lt;</span><span style="color:#a31515">system.web</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">compilation</span> <span style="color:red">debug</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">assemblies</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">add</span> <span style="color:red">assembly</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">add</span> <span style="color:red">assembly</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">assemblies</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">compilation</span><span style="color:blue">&gt;</span><span style="color:blue">&lt;</span><span style="color:#a31515">br</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">system.web</span><span style="color:blue">&gt;</span> </pre> </div> The gentleman experiencing a similar problem on this thread here (</span> </span><a href="wcf/thread/fed739a7-d564-46c1-b2d5-603eb408895a">http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/fed739a7-d564-46c1-b2d5-603eb408895a</a> ) turned out to have triggered the problem by calling the MEX portion of the service with an incorrect address.  I'm not doing that, and I double-checked the values at which the endpoints are listening, and to which the calls are being made, and they all seem to be correct.<br/><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px"><br/>I've also seen some suggestions to run various flavors of &quot;</span> </span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="text-align:left;line-height:18px;border-collapse:collapse;font-family:Arial;font-size:14px">vsdiag_regwcf.exe -u</span> </span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">&quot;, but I'm not interested in making the message go away: I'm interested in actually debugging the service.<br/><br/></span></span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">I looked through a service trace with the Microsoft Service Trace Viewer, but I wasn't able to spot any obvious errors.<br/><br/></span></span><span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:16px 'Times New Roman';white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:Verdana;font-size:11px">It's not an issue with my Visual Studio configuration, as returning to the state of the code before I added the WSDualHttpBinding fixes the problem.<br/><br/>In other words, the problem appears to show up (for me, at least) when I have two different duplex endpoints bound to the same service.<br/><br/>Any thoughts or suggestions on how to tackle this?<br/><br/>Thanks in advance.<br/><br/>For what it's worth, I'm attaching the relevant portions of the web.config for my service:<br/><br/> <div style="background-color:white;color:black"> <pre> <span style="color:blue">&lt;</span><span style="color:#a31515">system.serviceModel</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;!--</span><span style="color:green"> ks: aspNetCompatibility is required for sharing state between WCF and ASP.NET </span><span style="color:blue">--&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceHostingEnvironment</span> <span style="color:red">aspNetCompatibilityEnabled</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">bindings</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">bindings</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">extensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behaviorExtensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">add</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">silverlightFaults</span><span style="color:black">&quot;</span> <span style="color:red">type</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.SilverlightFaultBehavior, SlideLinc.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behaviorExtensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">extensions</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">endpointBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behavior</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SilverlightFaultBehavior</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">silverlightFaults</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behavior</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">endpointBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">behavior</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.RoomServiceBehavior</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceMetadata</span> <span style="color:red">httpGetEnabled</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">serviceDebug</span> <span style="color:red">includeExceptionDetailInFaults</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">dataContractSerializer</span> <span style="color:red">maxItemsInObjectGraph</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">2147483646</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behavior</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">serviceBehaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">behaviors</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">services</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">service</span> <span style="color:red">name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.RoomService</span><span style="color:black">&quot;</span> <span style="color:red">behaviorConfiguration</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">SlideLinc.Service.RoomServiceBehavior</span><span style="color:black">&quot;</span> <span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">services</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">diagnostics</span> <span style="color:red">performanceCounters</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">All</span><span style="color:black">&quot;</span> <span style="color:red">wmiProviderEnabled</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">messageLogging</span> <span style="color:red">logEntireMessage</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">logMalformedMessages</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">logMessagesAtServiceLevel</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">logMessagesAtTransportLevel</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">true</span><span style="color:black">&quot;</span> <span style="color:red">maxMessagesToLog</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">100000</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">diagnostics</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">system.serviceModel</span><span style="color:blue">&gt;</span> </pre> </div> <br/><br/><br class=Apple-interchange-newline></span></span> <hr class=sig> Ken SmithMon, 01 Jun 2009 05:06:03 Z2009-06-01T05:09:12Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#7c9dca82-2eb1-4c6d-af2c-1fb5ee19e9f2http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#7c9dca82-2eb1-4c6d-af2c-1fb5ee19e9f2Marco Zhouhttp://social.msdn.microsoft.com/Profile/en-US/?user=Marco%20ZhouError message: Unable to automatically debug serviceSince I never experienced this issue before, could you please send your test project to me at v-mazho at microsoft dot com for repro? BTW, which version of Visual Studio you are using?<br/> <br/> Thanks<hr class="sig">Another Paradigm Shift<br/> <a href="http://shevaspace.blogspot.com">http://shevaspace.blogspot.com</a>Wed, 03 Jun 2009 03:06:09 Z2009-06-03T03:06:09Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#f169d626-d9bd-4dfb-93df-a2b192c69b82http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#f169d626-d9bd-4dfb-93df-a2b192c69b82Ken Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug serviceI apologize for taking so long to reply on this one.  I ended up implementing a workaround by splitting off the duplex from the simplex services, and that took care of my immediate problem for a while.  However, it also introduced a whole series of other architectural problems, so I want to migrate everything back to just one service (e.g., one .svc file).  And in the process of moving everything back, I ran into this problem again.  <br/> <br/> A couple things to note:<br/> - I'm using Visual Studio 2008 SP1, with Silverlight 3.0.<br/> - If you call a duplex method first, you can debug the method call in question, but later method calls will trigger the error message.<br/> - If you call a simplex method first, you'll get the error, and won't be able to debug anything.<br/> <br/> I've created a pretty straightforward repro, and have put it out on <a href="http://wouldbetheologian.com/DuplexRepro.zip">http://wouldbetheologian.com/DuplexRepro.zip</a> .<br/> <br/> Ken<hr class="sig">Ken SmithThu, 02 Jul 2009 05:25:15 Z2009-07-02T05:25:15Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#c56ee378-bb8b-412c-9834-974e34e4598chttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#c56ee378-bb8b-412c-9834-974e34e4598cKen Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug serviceJust bumping this up again.  Anyone have any suggestions for troubleshooting this, or working around it?<br/><hr class="sig">Ken SmithSat, 04 Jul 2009 04:41:21 Z2009-07-04T04:41:21Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#ba667449-7cfd-4a51-9f86-e940d29584a0http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#ba667449-7cfd-4a51-9f86-e940d29584a0Ken Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug serviceFor what it's worth, I went ahead and filed a bug on this:<br/> <br/> <a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=472536">https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=472536</a><hr class="sig">Ken SmithSat, 04 Jul 2009 23:55:41 Z2009-07-04T23:55:41Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#026fe49d-7d9e-451b-bbaf-b778b2832081http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#026fe49d-7d9e-451b-bbaf-b778b2832081Ken Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug serviceJust pinging this again to see if anyone has any suggestions.  We're blocked on this one, unless I can figure out a workaround.<hr class="sig">Ken SmithWed, 08 Jul 2009 09:53:22 Z2009-07-08T09:53:22Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#5826d8da-84e9-48d0-bf16-7884501bb981http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#5826d8da-84e9-48d0-bf16-7884501bb981Ken Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug serviceI'd love to hear from someone at MS about this . . . it's a fairly clear error, it certainly seems to be a bug, and it's blocking us from moving forward.  Any suggestions?<hr class="sig">Ken SmithTue, 14 Jul 2009 11:10:02 Z2009-07-14T11:10:02Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#d8025c63-9a32-4e92-ae78-3b9152eaa4b9http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#d8025c63-9a32-4e92-ae78-3b9152eaa4b9Samuel Jackhttp://social.msdn.microsoft.com/Profile/en-US/?user=Samuel%20JackError message: Unable to automatically debug serviceI'm having a similar problem, though not involving duplex bindings. I get the same error message about not being able to debug the service. I've carefully gone through every change made to my web.config file and isolated it down to adding in the &lt;security/&gt; element to a custom binding.<br/><br/>Here's my config <pre lang=x-xml>&lt;system.serviceModel&gt; &lt;extensions&gt; &lt;behaviorExtensions&gt; &lt;add name=&quot;silverlightFaults&quot; type=&quot;Behaviours.SilverlightFaultBehavior, Wcf.Behaviours, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&quot; /&gt; &lt;/behaviorExtensions&gt; &lt;/extensions&gt; &lt;diagnostics&gt; &lt;messageLogging logMalformedMessages=&quot;false&quot; logMessagesAtServiceLevel=&quot;false&quot; logMessagesAtTransportLevel=&quot;false&quot; /&gt; &lt;/diagnostics&gt; &lt;services&gt; &lt;service behaviorConfiguration=&quot;CommonServiceBehaviour&quot; name=&quot;Server.Services.ScenarioService&quot;&gt; &lt;endpoint address=&quot;&quot; binding=&quot;customBinding&quot; bindingConfiguration=&quot;AuthorisedBinaryHttpsBinding&quot; name=&quot;Http&quot; contract=&quot;Server.Contracts.Services.IScenarioService&quot; behaviorConfiguration=&quot;CommonEndpointBehaviour&quot;/&gt; &lt;endpoint address=&quot;mex&quot; binding=&quot;mexHttpBinding&quot; contract=&quot;IMetadataExchange&quot; /&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;customBinding&gt; &lt;binding name=&quot;AuthorisedBinaryHttpsBinding&quot; receiveTimeout=&quot;00:03:00&quot; sendTimeout=&quot;00:03:00&quot;&gt; &lt;!-- Here's the problem element: --&gt; &lt;security authenticationMode=&quot;UserNameOverTransport&quot;&gt; &lt;/security&gt; &lt;binaryMessageEncoding&gt; &lt;readerQuotas maxDepth=&quot;100&quot; maxStringContentLength=&quot;1000000&quot; maxArrayLength=&quot;655360000&quot; /&gt; &lt;/binaryMessageEncoding&gt; &lt;httpsTransport /&gt; &lt;/binding&gt; &lt;binding name=&quot;BinaryHttpsBinding&quot;&gt; &lt;binaryMessageEncoding /&gt; &lt;httpsTransport /&gt; &lt;/binding&gt; &lt;/customBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name=&quot;CommonServiceBehaviour&quot;&gt; &lt;serviceAuthorization principalPermissionMode=&quot;UseAspNetRoles&quot;/&gt; &lt;serviceCredentials&gt; &lt;userNameAuthentication userNamePasswordValidationMode=&quot;MembershipProvider&quot; membershipProviderName=&quot;AdminSqlMembershipProvider&quot;/&gt; &lt;/serviceCredentials&gt; &lt;serviceMetadata httpGetEnabled=&quot;true&quot; /&gt; &lt;serviceDebug includeExceptionDetailInFaults=&quot;${includeExceptionDetailInFaults}&quot; /&gt; &lt;dataContractSerializer maxItemsInObjectGraph=&quot;2147483647&quot; /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior name=&quot;CommonEndpointBehaviour&quot;&gt; &lt;silverlightFaults /&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt;</pre> If I comment out the security element that I've highlighted above, every thing works ok, but when I leave it in, then I get the error message.<br/><br/>I must say that my first thought was that the SilverlightFault behaviour was causing the problem (as that was obviously common between Ken's setup and mine), but I've tried removing that from the equation, and it makes no difference.Fri, 17 Jul 2009 10:25:17 Z2009-07-17T10:25:17Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#43b9b163-65ef-49ba-b3f2-038c73773664http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#43b9b163-65ef-49ba-b3f2-038c73773664Samuel Jackhttp://social.msdn.microsoft.com/Profile/en-US/?user=Samuel%20JackError message: Unable to automatically debug serviceI managed to fix my problem. When I turned on tracing for WCF I discovered this error:<br/><br/>Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties.   This can occur if the service is configured for security and the client is not using security.<br/><br/>That pointed me to the binding setup on my client side, where I discovered I was using a binding without the requisite Security element. Since I'm using a custom binding, and configuring it through code, I had to do: <span style="font-size:x-small"> <pre lang="x-c#">var binding = new CustomBinding( binaryEncoding, SecurityBindingElement.CreateUserNameOverTransportBindingElement(), new HttpsTransportBindingElement { MaxReceivedMessageSize = MaxMessageSize, });</pre> </span> Once that was sorted, the problem went away and I was able to debug correctly.<br/><br/>I don't know why this problem should prevent ASP.Net debugging - that sounds like a bug to me.<br/><br/>Hope that helps.Fri, 17 Jul 2009 10:45:01 Z2009-07-17T10:45:27Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#dcd965f3-32c9-45e8-9719-a48c7e3f2330http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#dcd965f3-32c9-45e8-9719-a48c7e3f2330Ken Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug serviceFor what it's worth, my workaround was to move away from hosting the service in IIS.  I don't really like hosting it in a normal Windows service during development, because debugging it is too complicated, so for now I've simply implemented it as a console application.  But at least I can debug the service now.<hr class="sig">Ken SmithMon, 17 Aug 2009 15:42:11 Z2009-08-17T15:42:11Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#82468e04-4fda-49dd-9eef-106033ecae15http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#82468e04-4fda-49dd-9eef-106033ecae15MichaelDBanghttp://social.msdn.microsoft.com/Profile/en-US/?user=MichaelDBangError message: Unable to automatically debug serviceI'm getting the same annoying issue: WPF App --&gt; WCF Service 1 --&gt; WCF Service 2.<br/><br/>When the call from Service 1 returns, that's when the error pops up. WTF. :PThu, 17 Sep 2009 14:30:12 Z2009-09-17T14:30:12Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#6177fb9e-92a5-437d-9291-e677b21d79cchttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#6177fb9e-92a5-437d-9291-e677b21d79ccChristopher Scrosati - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Christopher%20Scrosati%20-%20MSFTError message: Unable to automatically debug service<p>I'm curious to know, are you using AspNetCompatibilityMode?</p><hr class="sig">Christopher Scrosati, Software Design Engineer, WCF Silverlight, Microsoft Corp.Fri, 18 Sep 2009 18:48:47 Z2009-09-18T18:48:47Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#f1ca5431-d1e8-438c-89b8-3ebc87d1a568http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#f1ca5431-d1e8-438c-89b8-3ebc87d1a568Ken Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ken%20SmithError message: Unable to automatically debug serviceI don't know about Michael or anyone else, but yeah, I was using AspNetCompatibilityMode before I abandoned using IIS to host my service.<br/><br/>For what it's worth, MS acknowledged this one as a bug, and said that it would get fixed in VS 2010 Beta 2.<br/><br/><a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=472536">https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=472536</a><hr class="sig">Ken SmithFri, 18 Sep 2009 18:52:43 Z2009-09-18T18:52:43Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#324641be-e009-4622-9107-fd28d99fbdb6http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#324641be-e009-4622-9107-fd28d99fbdb6Christopher Scrosati - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Christopher%20Scrosati%20-%20MSFTError message: Unable to automatically debug service<p>I see you are using AspNetCompatibilityMode on the services, and we do have known interaction that affects pollingduplex. We are currently writing a document to inform developers how to use PollingDuplex in a AspNetCompatibilityMode environment.<br/><br/>In the meantime, could you try to set your pollingDuplex client to use the ClientHttpWebRequest stack on the Silverlight client? That might be the issue.<br/><br/>You would need to set this in your Silverlight app, before any call to that service:<br/>WebRequest.RegisterPrefix(&quot;<a href="http://insertDomainToFilterHere">http://insertDomainToFilterHere</a>&quot;, WebRequestCreator.ClientHttp);</p><hr class="sig">Christopher Scrosati, Software Design Engineer, WCF Silverlight, Microsoft Corp.Fri, 18 Sep 2009 18:54:41 Z2009-09-18T18:54:41Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#79fcbe5e-1476-4fc2-964a-0b02f42e12bahttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#79fcbe5e-1476-4fc2-964a-0b02f42e12baChristopher Scrosati - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Christopher%20Scrosati%20-%20MSFTError message: Unable to automatically debug service<p>Is there any reference to AspNetCompatibilityMode in your code/config?<br/>I am trying to trace see if there is correlation here.</p><hr class="sig">Christopher Scrosati, Software Design Engineer, WCF Silverlight, Microsoft Corp.Fri, 18 Sep 2009 18:55:54 Z2009-09-18T18:55:54Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#2a735935-a1eb-473e-b30f-c16904b5cf1ahttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ade0dd72-96ae-445c-8e72-b2e625571d51#2a735935-a1eb-473e-b30f-c16904b5cf1aMichaelDBanghttp://social.msdn.microsoft.com/Profile/en-US/?user=MichaelDBangError message: Unable to automatically debug serviceI was not using AspNetCompatibility.  Switching to net.tcp fixed the problem in this case.  Luckily we're using that for our services.Sat, 19 Sep 2009 04:40:46 Z2009-09-19T04:40:46Z