[Mono-list] WCF Exception
James Darbyshire
jamesdarbyshire at gmail.com
Sun Jun 12 09:27:07 EDT 2011
Hi Atsushi,
It turns out the problem was an unhandled exception because I was including
an NHibernate Linfu dll not included in the bin folder - my bad. I saw this
when I looked at the response in Fiddler.
Now I get a:
>> Circular reference of an object in the object graph was found
I have a DTO which has '[DataContract(IsReference = true)]' set which, on
Windows, stops problems with circular references.
Is this available on mono?
The class is a user, which references RoleDTO, which has a List<UserDTO> on
it.
[DataContract(IsReference = true)]
public partial class UserDTO
{
[DataMember]
public RoleDTO Role
{
get;
set;
}
}
[DataContract(IsReference = true)]
public partial class RoleDTO
{
[DataMember]
public List<UserDTO> Users
{
get;
set;
}
}
Regards,
James
On 12 June 2011 23:00, Atsushi Eno <atsushieno at veritas-vos-liberabit.com>wrote:
> Hi,
>
> Without the actual code for client and server I cannot tell if your code is
> correct and what is the problem for sure, if any. If it is you who are
> trying to actually add WS-Addressing headers, then it really won't work
> since WSAddressing is really None for BasicHttpBinding.
>
> Atsushi Eno
>
> Hi all,
>>
>> I am getting the following exception when I try to consume a WCF service
>> hosted in mono 2.10.2
>>
>> >> Addressing Version 'AddressingNone (
>> http://schemas.microsoft.com/ws/2005/05/addressing/none)' does not
>> support adding WS-Addressing headers.
>>
>> Is there a way around this error?
>>
>> Thanks,
>>
>> JD
>>
>> --
>> Regards,
>>
>> James Darbyshire
>> jamesdarbyshire at gmail.com <mailto:jamesdarbyshire at gmail.com>
>>
>>
>> _______________________________________________
>> Mono-list maillist - Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
>
--
Regards,
James Darbyshire
jamesdarbyshire at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110612/96110281/attachment.html
More information about the Mono-list
mailing list