Error opening client service for hello indigo Application

Tech-Archive recommends: Fix windows errors by optimizing your registry




I am a newbie to WCF and going through the Part1 webcast of the series
presented by Michelle Bustamente. I am trying to run the accompanying lab
and have made the required changes to the app.config files to point to my
machine. Any suggestions what to do. Find below app.config file for Client:
Also, how do I start the Client service after the Service Host runs.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="basicHttp" closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false"
bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32"
maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384"
/>
<security mode="None">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://ALEX-PC/HelloIndigo/HelloIndigoService";
binding="basicHttpBinding" bindingConfiguration="basicHttp"
contract="IHelloIndigoService" name="basicHttp" />
</client>
</system.serviceModel>
</configuration>

Also find below app.config file for the Host:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="serviceBehavior">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="serviceBehavior"
name="HelloIndigo.HelloIndigoService">
<clear />
<endpoint address="HelloIndigoService"
binding="basicHttpBinding"
name="basicHttp"
contract="HelloIndigo.IHelloIndigoService" />
<endpoint binding="mexHttpBinding" name="mex"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<!--add
baseAddress="http://localhost:8000/HelloIndigo"; />-->

<add baseAddress="http://ALEX-PC/HelloIndigo"; />

</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>
</configuration>

Error message is per below:
The communication object, System.ServiceModel.ServiceHost, cannot be used
for communication because it is in the Faulted state.


.



Relevant Pages

  • Re: Help! VPN problem!
    ... what do you mean by client os? ... >> I had set up a MS VPN, and succesfully connected a pc to the host. ... What configuration should i do? ... Prev by Date: ...
    (microsoft.public.windows.server.networking)
  • ics working but no www displays
    ... one as ics host, one as client. ... here is the configuration of both host and client: ...
    (microsoft.public.windowsxp.network_web)
  • Re: Client End Firewalls
    ... it doesn't matter if the email client can't be tricked when the ... control such things on a Windows 98 box. ... > than getting the client firewall properly configured. ... > additional costs for configuration and configuration-changes? ...
    (Security-Basics)
  • Re: Overwhelmed by choices of Design Patterns
    ... For this app, the configuration looked something ... --- the client of the configurator most query the data out of the ... similarity from the adapter interface and the adaptee interface .. ... suddenly looks a lot like Strategy Pattern? ...
    (comp.object)
  • Re: SBS Laptop Security Paradigm??
    ... use the wizard... ... Client Configuration ... To connect client computers to the network, ... Client Networking Configuration ...
    (microsoft.public.windows.server.sbs)