This documentation is archived and is not being maintained.

Partial Trust: WPF Calling WCF Using a WSHttpBinding

Visual Studio 2008

Download sample

This sample demonstrates an end-to-end scenario that uses the <wsHttpBinding> 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.

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.

    Please ensure that static content is enabled in IIS, as described in Internet Information Service Hosting Instructions.

© 2007 Microsoft Corporation. All rights reserved.