Wrox Programmer Forums
|
BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842
This is the forum to discuss the Wrox book Professional WCF Programming: .NET Development with the Windows Communication Foundation by Scott Klein; ISBN: 9780470089842
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2008, 06:50 AM
Registered User
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5 Homework - Help please

I am working on the homework of the Chapter 5. The first exercise to include http binding in the code is perfectly working.

The second exercise to include http binding in the config file is giving me trouble. Below is my app.config

Quote:
quote:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <services>
            <service name="WCFService.ServiceClass">
                <endpoint contract = "WCFService.IServiceClass" name="NetTCPBinding_IServiceClass" binding="netTcpBinding" address="net.tcp://localhost:8000/TCPBinding" />
                <endpoint contract = "WCFService.IServiceClass" name="netNamedPipeBinding_IServiceClass" binding="netNamedPipeBinding" address="net.pipe://localhost/NetNamedPipeBinding" />
                <endpoint contract = "WCFService.IServiceClass" name="basicHttpBinding_IServiceClass" binding="basicHttpBinding" address="http://localhost:8001/HttpBinding" />
            </service>
        </services>
        <bindings>
            <netTcpBinding>
                <binding name="NetTcpBinding_IServiceClass" />
            </netTcpBinding>
            <netNamedPipeBinding>
                <binding name="netNamedPipeBinding_IServiceClass" />
            </netNamedPipeBinding>
            <basicHttpBinding>
                <binding name="basicHttpBinding_IServiceClass" />
            </basicHttpBinding>
        </bindings>
        <behaviors>
            <serviceBehaviors>

            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>
</configuration>
After running the Host, when i try to access the service using IE, i am getting the following error
Quote:
quote:- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <s:Fault>
<faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>
<faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>
Can somebody please help me with this. I appreciate if anybody can post their config here. The code given in the book given for tcp and namedpipes is working without issues.

Thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Water Bill Homework DweeLer C++ Programming 10 November 9th, 2005 06:40 PM
My Homework (I solved it) yui0329 C# 1 June 10th, 2005 11:25 AM
Problem with homework CHPT8,Page265 RABARBAR BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 December 17th, 2003 07:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.