[Mono-list] WCF Hosting Problem

Vinod baligavinod at gmail.com
Thu Jul 21 04:17:45 EDT 2011


Well, I tried this:

  <system.serviceModel>    <services>      <service
name="TestWCFService" behaviorConfiguration="MyBasicHttpBinding">
  <endpoint address="http://localhost/MonoTest/TestWCFService.svc"
binding="basicHttpBinding"
contract="MonoTest.ITestWCFService"></endpoint>      </service>
</services>    <behaviors>      <serviceBehaviors>        <behavior
name="MyBasicHttpBinding">          <serviceMetadata
httpGetEnabled="true" />          <serviceDebug
includeExceptionDetailInFaults="true" />        </behavior>
</serviceBehaviors>    </behaviors>    <serviceHostingEnvironment
multipleSiteBindingsEnabled="true" />  </system.serviceModel>

Still the same error :-(

-Vinod

On Thu, Jul 21, 2011 at 12:23 PM, James Darbyshire [via Mono] <
ml-node+3682955-2020607790-254001 at n4.nabble.com> wrote:

> 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.
>
> On 21 July 2011 16:51, Vinod Baliga <[hidden email]<http://user/SendEmail.jtp?type=node&node=3682955&i=0>
> > wrote:
>
>> Yes. I have setup the endpoint. I could not paste it in the editor. Here
>> it is:
>>
>> <services>
>>
>>   <service name="TestWCFService">
>>
>>     <endpoint address="http://localhost/MonoTest/TestWCFService.svc" binding="basicHttpBinding"
>>
>>
>>               contract="MonoTest.ITestWCFService"></endpoint>
>>   </service>
>> </services>
>> <behaviors>
>>   <serviceBehaviors>
>>
>>     <behavior name="">
>>       <serviceMetadata httpGetEnabled="true" />
>>
>>
>>       <serviceDebug includeExceptionDetailInFaults="true" />
>>
>>     </behavior>
>>   </serviceBehaviors>
>> </behaviors>
>>
>> Thanks
>>
>> -Vinod
>>
>>
>> On Thu, Jul 21, 2011 at 12:09 PM, James Darbyshire <[hidden email]<http://user/SendEmail.jtp?type=node&node=3682955&i=1>
>> > wrote:
>>
>>> Have you set up an end point in your .config file?
>>>
>>> The config was not in your last email.
>>>
>>> James
>>>
>>> On 21 July 2011 16:07, Vinod <[hidden email]<http://user/SendEmail.jtp?type=node&node=3682955&i=2>
>>> > wrote:
>>>
>>>> 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!):
>>>> http://www.mono-project.com/Mod_mono#Manual_Mod_Mono_ConfigurationAfter 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: *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.* or *HttpListenerContext does not match any
>>>> of the registered channels* Below is how my ServiceModel part of
>>>> web.config looks: ** ** ** **** ** ** ** ** ** ** ** ** ** ** ** ** 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't make use of any complex type. I am
>>>> using Mono Version 2.8.2
>>>> ------------------------------
>>>> View this message in context: WCF Hosting Problem<http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3682894.html>
>>>> Sent from the Mono - General mailing list archive<http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html>at Nabble.com.
>>>>
>>>> _______________________________________________
>>>> Mono-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=3682955&i=3>
>>>>
>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> James Darbyshire
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3682955&i=4>
>>>
>>
>>
>
>
> --
> Regards,
>
> James Darbyshire
> [hidden email] <http://user/SendEmail.jtp?type=node&node=3682955&i=5>
>
> _______________________________________________
> Mono-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=3682955&i=6>
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3682955.html
>  To unsubscribe from WCF Hosting Problem, click here<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3682894&code=YmFsaWdhdmlub2RAZ21haWwuY29tfDM2ODI4OTR8LTE5MTEzNDE0MjM=>.
>
>


--
View this message in context: http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3683070.html
Sent from the Mono - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110721/d2740179/attachment-0001.html 


More information about the Mono-list mailing list