Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Partial Trust: WPF Calling WCF Using a BasicHttpBinding

.NET Framework 3.5

Download sample

This sample demonstrates an end-to-end scenario using the BasicHttpBinding in a partially-trusted application. In this scenario, both the client and service run with reduced Code Access Security (CAS) permissions. The service is hosted in a Medium Trust ASP.NET application and the client is a Windows Presentation Foundation (WPF) XAML Browser Application (XBAP) running with Internet Zone permissions.

Bb943481.note(en-us,VS.90).gifNote:
This sample requires that .NET Framework version 3.5 is installed to build and run. Visual Studio 2008 is required to open the project and solution files.

To set up, build, and run the sample

  1. Ensure that you have performed the One-Time Set Up Procedure for the Windows Communication Foundation Samples.

  2. To build the C# or Visual Basic .NET edition of the solution, follow the instructions in Building the Windows Communication Foundation Samples.

  3. Open http://localhost/ServiceModelSamples/Index.htm in your web browser.

Bb943481.note(en-us,VS.90).gifNote:
Please ensure that Static Content is enabled in IIS, as described in Internet Information Service Hosting Instructions.


© 2007 Microsoft Corporation. All rights reserved.
Show:
© 2015 Microsoft