Problem is solved. If you want to edit the properties of the
ServiceDebugBehavior you have to remove it first and then readd it to the
service behaviors.

              ServiceDebugBehavior sdb =
selfHost.Description.Behaviors.Find<ServiceDebugBehavior>();
                if (sdb != null)
                {
                    // only enable this setting for development!!
                    // throw an exception of type faultexception for sending
errors to the client
                    sdb.IncludeExceptionDetailInFaults = true;
                                        
                                        // need to delete it first, otherwise 
it will not work in Mono 
                                        
selfHost.Description.Behaviors.Remove<ServiceDebugBehavior>();
                                        selfHost.Description.Behaviors.Add(sdb);
                }

After that it showed the exception details and was i able to fix the
problem.

--
View this message in context: 
http://mono.1490590.n4.nabble.com/Simple-WCF-application-not-working-Mono-2-10-3-tp3750332p3751207.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to