Error opening client service for hello indigo Application
- From: Alex. O. Koranteng <AlexK@xxxxxxxxxxxxxxxx>
- Date: Thu, 2 Jul 2009 12:20:10 -0700
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.
.
- Follow-Ups:
- RE: Error opening client service for hello indigo Application
- From: "Steven Cheng"
- RE: Error opening client service for hello indigo Application
- Prev by Date: WCF tracing does not work within Sharepoint
- Next by Date: RE: Error opening client service for hello indigo Application
- Previous by thread: WCF tracing does not work within Sharepoint
- Next by thread: RE: Error opening client service for hello indigo Application
- Index(es):
Relevant Pages
|