<transport> tag in ServicesReferences.ClientConfig

I created a WCF service and added it to an existing Silverlight application that I am working on.

When I launch the Silverlight application in debug mode, it does not work when I refer to the WCF web service.

Unrecognized element '' in the service link configuration. Note that in Silverlight, only the Windows Communication Foundation configuration feature set is available.

After the search, the following line appears to cause the application to crash:

<transport>
   <extendedProtectionPolicy policyEnforcement="Never" />
</transport>

After deleting the above lines, everything works. What is the problem? Should I believe this code and tune in something else?

+3
source share
1 answer

Silverlight ? <extendedProtectionPolicy> Silverlight 3.

wcf + silverlight Windows 7. [http://blogs.msdn.com/silverlightws/archive/2009/04/05/some-known-issues-in-sl3-beta.aspx]

: - Windows 7 - : "" httpTransport " " extendedProtectionPolicy ", ".

: Windows 7 WCF Silverlight Web.config. Silverlight. Web.config - Silverlight.

+2

Source: https://habr.com/ru/post/1709043/


All Articles