silverlight 3.0 - Security configuration when using custom binding in WCF -
I am trying to shut down an application in silverlight so far by using the client application of NetTcpBinding was talking. However, Silverlight does not support it, and I have found that they instead recommend using custom binding.
I should know the weather I need to configure binding in a particular way in relation to safety. My distributed application works well when clients and servers are running in the same machine, But not walking in different people. In this case, I get the following error:
Due to a contract filter mismatch on the Android Dispatch, the message can not be processed on the receiver with the operation. It may be that there is no compulsion / security match between the contract mismatch (mismatched action beiels sender and receiver) or the sender and the receiver. Check that the sender and the receiver have the same contract and the same binding (security requirements, such as messages, transport, none).
I have already contracted and binding (the problem is when nettcbinding works fine when switching to custom binding). The port is also enabled on the firewall, based on the error message, I think the WCF considers some security threats which do not match in the client and server.
The server config file is as follows:
& lt ;? XML version = "1.0"? & Gt; & Lt; Configuration & gt; & Lt; System.serviceModel & gt; & Lt; Services & gt; & Lt; Service transaction support = "meta-supportedbavier" name = "myser" & gt; & Lt; Host & gt; & Lt; BaseAddresses & gt; & Lt; AddAddress = "http: // MyIP: Port # / MySaser" /> Add & lt; / BaseAddresses & gt; & Lt; / Host & gt; & Lt; Endpoint address = "custom" binding = "custombinding" contract = "MySwive" binding configuration = "binary html binding" /> & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Binding & gt; & Lt; Custombinding & gt; & Lt; Binding name = "binaryHttpBinding" & gt; & Lt; BinaryMessageEncoding / & gt; & Lt; Trusted session ordered = "true" inactivity time = "01:00:00" /> & lt; HttpTransport / & gt; & Lt; / Binding & gt; & Lt; / CustomBinding & gt; & Lt; / Binding & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior Name = "MetaNetedBeehair" & gt; & Lt; Service debug includes ExceptionDetailInFaults = "true" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt; & Lt; /system.serviceModel> & Lt; Startup & gt; & Lt; Supported serial version = "v2.0.50727" /> & Lt; / Startup & gt; & Lt; / Configuration & gt;
And the client configuration is like this:
& lt; BinaryMessageEncoding maxReadPoolSize = "64" maxWritePoolSize = "16" maxSessionSize = "2048" & gt; & Lt; ReaderQuotas maxDepth = "32" maxStringContentLength = "8192" MacArray Lang = "16384" Maxbitespere Read = "4096" Max-nameTableConnect = "16384" /> & Lt; / BinaryMessageEncoding & gt; & Lt; HttpTransport manualAddressing = "false" maxBufferPoolSize = "524288" maxReceivedMessageSize = "65536" AllowKookies = "False" authenticationSham = "Anonymous" BypassProxyLocal = "wrong" HostnameCommentMode = "StrongWaldCard" KeepSmarted = "True" MaxBufriceSies = "65536" ProxyEitricationScheam = " Anonymous "realm =" "transferMode =" buffered "unprotected connectionTLM authentication =" false "usage Default WebProxy =" true "/> & Lt; / Binding & gt; & Lt; / CustomBinding & gt; & Lt; / Binding & gt; & Lt; Customers & gt; & Lt; Endpoint address = "http: // MyIP: port # / myswive / custom" binding = "custombinding" contract = "MySiviv" binding configuration = "default-binding" name = "default-binding" /> & Lt; / Customer & gt; & Lt; /system.serviceModel> & Lt; / Configuration & gt;
Comments
Post a Comment