Well, I tried this:<br><div><pre style="font-family:Consolas;font-size:13;color:black;background:white"><span style="color:blue">  &lt;</span><span style="color:#a31515">system.serviceModel</span><span style="color:blue">&gt;</span>
<span style="color:blue">    &lt;</span><span style="color:#a31515">services</span><span style="color:blue">&gt;</span>
<span style="color:blue">      &lt;</span><span style="color:#a31515">service</span><span style="color:blue"> </span><span style="color:red">name</span><span style="color:blue">=</span>&quot;<span style="color:blue">TestWCFService</span>&quot;<span style="color:blue"> </span><span style="color:red">behaviorConfiguration</span><span style="color:blue">=</span>&quot;<span style="color:blue">MyBasicHttpBinding</span>&quot;<span style="color:blue">&gt;</span>
<span style="color:blue">        &lt;</span><span style="color:#a31515">endpoint</span><span style="color:blue"> </span><span style="color:red">address</span><span style="color:blue">=</span>&quot;<span style="color:blue"><a href="http://localhost/MonoTest/TestWCFService.svc" target="_blank" rel="nofollow" link="external">http://localhost/MonoTest/TestWCFService.svc</a></span>&quot;<span style="color:blue"> </span><span style="color:red">binding</span><span style="color:blue">=</span>&quot;<span style="color:blue">basicHttpBinding</span>&quot;
<span style="color:blue">                  </span><span style="color:red">contract</span><span style="color:blue">=</span>&quot;<span style="color:blue">MonoTest.ITestWCFService</span>&quot;<span style="color:blue">&gt;&lt;/</span><span style="color:#a31515">endpoint</span><span style="color:blue">&gt;</span>
<span style="color:blue">      &lt;/</span><span style="color:#a31515">service</span><span style="color:blue">&gt;</span>
<span style="color:blue">    &lt;/</span><span style="color:#a31515">services</span><span style="color:blue">&gt;</span>
<span style="color:blue">    &lt;</span><span style="color:#a31515">behaviors</span><span style="color:blue">&gt;</span>
<span style="color:blue">      &lt;</span><span style="color:#a31515">serviceBehaviors</span><span style="color:blue">&gt;</span>
<span style="color:blue">        &lt;</span><span style="color:#a31515">behavior</span><span style="color:blue"> </span><span style="color:red">name</span><span style="color:blue">=</span>&quot;<span style="color:blue">MyBasicHttpBinding</span>&quot;<span style="color:blue">&gt;</span>
<span style="color:blue">          &lt;</span><span style="color:#a31515">serviceMetadata</span><span style="color:blue"> </span><span style="color:red">httpGetEnabled</span><span style="color:blue">=</span>&quot;<span style="color:blue">true</span>&quot;<span style="color:blue"> /&gt;</span>
<span style="color:blue">          &lt;</span><span style="color:#a31515">serviceDebug</span><span style="color:blue"> </span><span style="color:red">includeExceptionDetailInFaults</span><span style="color:blue">=</span>&quot;<span style="color:blue">true</span>&quot;<span style="color:blue"> /&gt;</span>
<span style="color:blue">        &lt;/</span><span style="color:#a31515">behavior</span><span style="color:blue">&gt;</span>
<span style="color:blue">      &lt;/</span><span style="color:#a31515">serviceBehaviors</span><span style="color:blue">&gt;</span>
<span style="color:blue">    &lt;/</span><span style="color:#a31515">behaviors</span><span style="color:blue">&gt;</span>
<span style="color:blue">    &lt;</span><span style="color:#a31515">serviceHostingEnvironment</span><span style="color:blue"> </span><span style="color:red">multipleSiteBindingsEnabled</span><span style="color:blue">=</span>&quot;<span style="color:blue">true</span>&quot;<span style="color:blue"> /&gt;</span>
<span style="color:blue">  &lt;/</span><span style="color:#a31515">system.serviceModel</span><span style="color:blue">&gt;</span></pre></div>Still the same error :-(<br><br>-Vinod<br><br><div class="gmail_quote">On Thu, Jul 21, 2011 at 12:23 PM, James Darbyshire [via Mono] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=3683070&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">

        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><div class="gmail_quote"><div class="im">On 21 July 2011 16:51, Vinod Baliga <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3682955&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>

</div><blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><div class="im">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" rel="nofollow" link="external" 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><div><br><br><div class="gmail_quote"><div class="im">On Thu, Jul 21, 2011 at 12:09 PM, James Darbyshire <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3682955&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>


</div><blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><div class="im">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><div>James<br><br><div class="gmail_quote"><div class="im">On 21 July 2011 16:07, Vinod <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3682955&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>

</div><blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><div class="im">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" rel="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">WCF Hosting Problem</a><br>
Sent from the <a href="http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html" rel="nofollow" link="external" target="_blank">Mono - General mailing list archive</a> at Nabble.com.<br><br>_______________________________________________<br>
</div>
Mono-list maillist  -  <a href="http://user/SendEmail.jtp?type=node&amp;node=3682955&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a><div class="im"><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-list" rel="nofollow" link="external" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-list</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>James Darbyshire<br><a href="http://user/SendEmail.jtp?type=node&amp;node=3682955&amp;i=4" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>

</div>
</blockquote></div><br>
</div></div></blockquote></div><div class="im"><br><br clear="all"><br>-- <br>Regards,<br><br>James Darbyshire<br><a href="http://user/SendEmail.jtp?type=node&amp;node=3682955&amp;i=5" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>

<br>_______________________________________________
<br>Mono-list maillist  -  <a href="http://user/SendEmail.jtp?type=node&amp;node=3682955&amp;i=6" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br></div><div class="im"><a href="http://lists.ximian.com/mailman/listinfo/mono-list" rel="nofollow" link="external" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-list</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3682955.html" target="_blank" rel="nofollow" link="external">http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3682955.html</a>
        </div><div><div></div><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from WCF Hosting Problem, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></div></div></blockquote></div><br>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3683070.html">Re: WCF Hosting Problem</a><br/>
Sent from the <a href="http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html">Mono - General mailing list archive</a> at Nabble.com.<br/>