<p>Have you considered using ServiceStack ? It's faster than WCF and has first class support on mono and is way easier to use.</p>
<div class="gmail_quote">19-04-2012 14:03, "Gerjan Dokter" <<a href="mailto:gerjan.dokter@gmail.com">gerjan.dokter@gmail.com</a>> napisał(a):<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> </div><div>Hello,</div><div> </div><div>My name is Gerjan, and i am working on a Domotica Project which is implemented on a DreamPlug(Linux Debian).</div><div> </div><div>For this project i am using WCF Services which is a part of the .NET Framework.</div>

<div> </div><div>My question is if the full functionality of WCF Services is implemented in Mono. A more specific question is if the "AnnouncementService" functionality is added to mono. Because when i want to add an ServiceEndpoint(new UdpAnnouncementEndpoint) to my Servichost with servicetype 'announcementservice', the program is returning an error, which is:</div>

<div> </div><div><em>Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object</em></div><div><em>at System.ServiceModel.Channels.TextMessageEncoder.FillActionContentType</em></div>

<div> </div><div>I am looking forward to your answer,</div><div> </div><div>Sincerly,</div><div> </div><div>Gerjan</div><div> </div><div>below my  code:</div><div> </div><div>   class Program</div><div>    {</div><div>        static void Main(string[] args)</div>

<div>        {</div><div>            // Create an AnnouncementService instance</div><div>            AnnouncementService announcementService = new AnnouncementService();</div><div> </div><div>            // Subscribe the announcement events</div>

<div>            announcementService.OnlineAnnouncementReceived += OnOnlineEvent;</div><div>            announcementService.OfflineAnnouncementReceived += OnOfflineEvent;</div><div> </div><div>            // Create ServiceHost for the AnnouncementService</div>

<div>            using (ServiceHost announcementServiceHost = new ServiceHost(announcementService))</div><div>            {</div><div>                // Listen for the announcements sent over UDP multicast</div><div>                announcementServiceHost.AddServiceEndpoint(new UdpAnnouncementEndpoint());</div>

<div>                announcementServiceHost.Open();</div><div>                Console.WriteLine("Press <ENTER> to terminate.");</div><div>                Console.ReadLine();</div><div>                announcementServiceHost.Close();</div>

<div>            }            </div><div>        }</div><div> </div><div> </div><div>        static void OnOnlineEvent(object sender, AnnouncementEventArgs e)</div><div>        {</div><div>            Console.WriteLine("Received an online announcement from {0}", e.EndpointDiscoveryMetadata.Address);</div>

<div>            Console.WriteLine("Received an online announcement from {0}", e.EndpointDiscoveryMetadata.ContractTypeNames.ToString());</div><div>            Console.WriteLine("Received an online announcement from {0}", e.EndpointDiscoveryMetadata.ListenUris.ToString());</div>

<div>            Console.WriteLine("Received an online announcement from {0}", e.EndpointDiscoveryMetadata.Version);</div><div>        }</div><div> </div><div>        static void OnOfflineEvent(object sender, AnnouncementEventArgs e)</div>

<div>        {</div><div>            Console.WriteLine("Received an offline announcement from {0}", e.EndpointDiscoveryMetadata.Address);</div><div>            Console.WriteLine("Received an offline announcement from {0}", e.EndpointDiscoveryMetadata.ContractTypeNames.ToString());</div>

<div>            Console.WriteLine("Received an offline announcement from {0}", e.EndpointDiscoveryMetadata.ListenUris.ToString());</div><div>            Console.WriteLine("Received an offline announcement from {0}", e.EndpointDiscoveryMetadata.Version);</div>

<div>        }</div><div>    }</div>
<br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div>