Problem with WCF Hosting on Mono -


i trying host simple application 1 .aspx, .asmx , .svc file each. followed below guide achieve hosting (since new linux world, took while understand it!):

http://www.mono-project.com/mod_mono#manual_mod_mono_configuration

after hosting, able access aspx , asmx file. when try access svc file, below error:

the servicehost must have @ least 1 application endpoint (that not include metadata exchange endpoint) defined either configuration, behaviors or call addserviceendpoint methods.

or

httplistenercontext not match of registered channels

i have pretty straight forward service endpoint defined in web.config looks below:

  <system.servicemodel> <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> <servicehostingenvironment multiplesitebindingsenabled="true" /> 

can please tell me doing wrong?

note: used ms vs 2010 create project , published it. published directory copied apache/linux environment. wcf doesn't make use of complex type. using mono version 2.8.2

update update: tried using 2.10.2 mono. error gone , facing new one:

xmlschema error: named item http://tempuri.org/:dowork contained in schema object table. consider setting mono_strict_ms_compliant 'yes' mimic ms implementation. related schema item sourceuri: , line 0, position 0. 

after weeks of r&d on have figured out this. reason, can't service wsdl work (meaning can't access .svc browser). however, service works fine when try access using channel factory.

so have implemented in channel factory (for silverlight app) , seems working fine right now. still not sure how wsdl work that's not important me of now.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -