I think when I was trying to get WCF working I had to explicitly name the behaviour, and then set the service to use that behaviour.<br><br><div class="gmail_quote">On 21 July 2011 16:51, Vinod Baliga <span dir="ltr">&lt;<a href="mailto:baligavinod@gmail.com">baligavinod@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yes. I have setup the endpoint. I could not paste it in the editor. Here it is:<br><br><pre><code><span>&lt;services&gt;</span><span><br>
  </span><span>&lt;service</span><span> </span><span>name</span><span>=</span><span>&quot;TestWCFService&quot;</span><span>&gt;</span><span><br>
    </span><span>&lt;endpoint</span><span> </span><span>address</span><span>=</span><span>&quot;<a href="http://localhost/MonoTest/TestWCFService.svc" target="_blank">http://localhost/MonoTest/TestWCFService.svc</a>&quot;</span><span> </span><span>binding</span><span>=</span><span>&quot;basicHttpBinding&quot;</span><span><br>

              </span><span>contract</span><span>=</span><span>&quot;MonoTest.ITestWCFService&quot;</span><span>&gt;&lt;/endpoint&gt;</span><span><br>  </span><span>&lt;/service&gt;</span><span><br>
</span><span>&lt;/services&gt;</span><span><br></span><span>&lt;behaviors&gt;</span><span><br>  </span><span>&lt;serviceBehaviors&gt;</span><span><br>
    </span><span>&lt;behavior</span><span> </span><span>name</span><span>=</span><span>&quot;&quot;</span><span>&gt;</span><span><br>      </span><span>&lt;serviceMetadata</span><span> </span><span>httpGetEnabled</span><span>=</span><span>&quot;true&quot;</span><span> </span><span>/&gt;</span><span><br>

      </span><span>&lt;serviceDebug</span><span> </span><span>includeExceptionDetailInFaults</span><span>=</span><span>&quot;true&quot;</span><span> </span><span>/&gt;</span><span><br>
    </span><span>&lt;/behavior&gt;</span><span><br>  </span><span>&lt;/serviceBehaviors&gt;</span><span><br></span><span>&lt;/behaviors&gt;</span><span><br>
</span></code></pre>Thanks<br><font color="#888888"><br>-Vinod</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jul 21, 2011 at 12:09 PM, James Darbyshire <span dir="ltr">&lt;<a href="mailto:jamesdarbyshire@gmail.com" target="_blank">jamesdarbyshire@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you set up an end point in your .config file?<div><br></div><div>The config was not in your last email.</div><div>

<br></div><div>James<br><br><div class="gmail_quote">On 21 July 2011 16:07, Vinod <span dir="ltr">&lt;<a href="mailto:baligavinod@gmail.com" target="_blank">baligavinod@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I am trying to host a simple application with one aspx, asmx and svc file each. I followed the below guide to achieve the hosting (since I am very new to the linux world, it took a while to understand it!):

<a href="http://www.mono-project.com/Mod_mono#Manual_Mod_Mono_Configuration" target="_blank">http://www.mono-project.com/Mod_mono#Manual_Mod_Mono_Configuration</a>

After all the hosting, I am able to access the aspx and asmx file. But when I try to access the svc file, I get the below error:

<b><i>The ServiceHost must have at least one application endpoint (that does not include metadata exchange endpoint) defined by either configuration, behaviors or call to AddServiceEndpoint methods.</i></b>

or

<b><i>HttpListenerContext does not match any of the registered channels</i></b>

Below is how my ServiceModel part of web.config looks:

  <u></u>
    <u></u>
      <u></u>
        <u></u><u></u>
      <u></u>
    <u></u>
    <u></u>
      <u></u>
        <u></u>
          <u></u>
          <u></u>
        <u></u>
      <u></u>
    <u></u>
    <u></u>
  <u></u>

Can you please tell me what I am doing wrong?

Note: I used MS VS 2010 to create this project and then published it. The published directory is copied to the Apache/Linux Environment. The WCF doesn&#39;t make use of any complex type. I am using Mono Version 2.8.2
        
<br><hr align="left" width="300">
View this message in context: <a href="http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3682894.html" target="_blank">WCF Hosting Problem</a><br>
Sent from the <a href="http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html" target="_blank">Mono - General mailing list archive</a> at Nabble.com.<br><br>_______________________________________________<br>
Mono-list maillist  -  <a href="mailto:Mono-list@lists.ximian.com" target="_blank">Mono-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>James Darbyshire<br><a href="mailto:jamesdarbyshire@gmail.com" target="_blank">jamesdarbyshire@gmail.com</a><br>
</div>
</blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>James Darbyshire<br><a href="mailto:jamesdarbyshire@gmail.com" target="_blank">jamesdarbyshire@gmail.com</a><br>