[MonoTouch] "DataMember property 'System.String Message' on type 'System.ServiceModel.ExceptionDetail' must have both getter and setter"
tomf84
ml at tomfanning.eu
Fri Dec 30 04:54:33 EST 2011
Hi
I'm consuming a simple WCF service per the wiki instructions here:
http://wiki.ios.xamarin.com/HowTo/WebServices/Using_WCF
My service exposes a method UploadFile().
SlSvcUtil.exe has produced a class containing a type
UploadFileCompletedEventArgs.
When I cast the EventArgs on the UploadFileCompleted event to
UploadFileCompletedEventArgs, and try to access its Error.Message property
(a string on an Exception instance), I get an unhandled exception with the
message "DataMember property 'System.String Message' on type
'System.ServiceModel.ExceptionDetail' must have both getter and setter".
This works fine on the simulator but fails on the device.
Smells like a bug or a linker issue, but not sure.
Help appreciated.
Best regards
Tom
--
View this message in context: http://monotouch.2284126.n4.nabble.com/DataMember-property-System-String-Message-on-type-System-ServiceModel-ExceptionDetail-must-have-both-tp4245362p4245362.html
Sent from the MonoTouch mailing list archive at Nabble.com.
More information about the MonoTouch
mailing list