Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Contract Name 'IMyService' could not be found?
    text
    copied!<blockquote> <p>The contract name 'IMyService' could not be found in the list of contracts implemented by the service 'MyService'.. ---> System.InvalidOperationException: The contract name 'IMyService' could not be found in the list of contracts implemented by the service 'MyService'.</p> </blockquote> <p>This is driving me crazy. I have a WCF web service that works on my dev machine, but when I copy it to a Virtual Machine that I am using for testing, I get the error that seems to indicate that I am not implementing the interface, but it does not make sense because the service does work on my windows xp IIS. the Virtual machine uses Windows Server 2003 IIS. Any ideas?</p> <p>One thing to note here is that I get this error on my VM even while just trying to access the service in a web browser as the client.</p> <p>Note: I am using principalPermissionMode="UseWindowsGroups", but that is not a problem on my local machine. I just add myself to the appropriate windows group. But no luck on my VM.</p> <p>Config:</p> <pre><code>&lt;configuration&gt; &lt;system.serviceModel&gt; &lt;diagnostics&gt; &lt;messageLogging logEntireMessage="false" maxSizeOfMessageToLog="2147483647" /&gt; &lt;/diagnostics&gt; &lt;services&gt; &lt;service behaviorConfiguration="MyServiceBehaviors" name="MyService"&gt; &lt;endpoint binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" name="MyService" bindingName="basicHttpBinding" bindingNamespace="http://my.test.com" contract="IMyService"&gt; &lt;/endpoint&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="basicHttpBinding" maxReceivedMessageSize="2147483647"&gt; &lt;readerQuotas maxStringContentLength="2147483647" /&gt; &lt;security mode="TransportCredentialOnly"&gt; &lt;transport clientCredentialType="Windows" proxyCredentialType="None" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;netTcpBinding&gt; &lt;binding name="WindowsClientOverTcp" maxReceivedMessageSize="2147483647"&gt; &lt;readerQuotas maxStringContentLength="2147483647" /&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;wsHttpBinding&gt; &lt;binding name="wsHttpBinding" maxReceivedMessageSize="2147483647"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="MyServiceBehaviors"&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;serviceAuthorization principalPermissionMode="UseWindowsGroups" impersonateCallerForAllOperations="false" /&gt; &lt;serviceCredentials /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload