[Mono-bugs] [Bug 548787] New: Using MessageContracts fails when not using -nolink option

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 21 10:38:43 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=548787


           Summary: Using MessageContracts fails when not using -nolink
                    option
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: christian.weyer at thinktecture.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer


Description of Problem:
There is a description of the problem in the forums:
http://forums.monotouch.net/Forums/Thread.aspx?thread=40&mid=6&pageid=1&ItemID=2&pagenumber=1#post176

Steps to reproduce the problem:
1. Create a client-side WCF proxy which uses a ServiceContract that has
MessageContracts in the OperationContracts
2. When creating the proxy object an exception is thrown.


Actual Results:
Stacktrace:

at (wrapper managed-to-native)
System.MonoCustomAttrs.GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x00004>
at (wrapper managed-to-native)
System.MonoCustomAttrs.GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0xffffffff>
at System.MonoCustomAttrs.GetCustomAttributesBase
(System.Reflection.ICustomAttributeProvider,System.Type) <0x00046>
at System.MonoCustomAttrs.GetCustomAttributes
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x0003a>
at System.Reflection.MonoField.GetCustomAttributes (System.Type,bool) <0x00018>
at
System.ServiceModel.Description.ContractDescriptionGenerator.GetMessageBodyMemberAttribute
(System.Reflection.MemberInfo) <0x0001a>
at
System.ServiceModel.Description.ContractDescriptionGenerator.CreateMessageDescription
(System.Type,string,string,bool,System.ServiceModel.MessageContractAttribute)
<0x0025d>
at System.ServiceModel.Description.ContractDescriptionGenerator.GetMessage
(System.ServiceModel.Description.OperationDescription,System.Reflection.MethodInfo,System.ServiceModel.OperationContractAttribute,bool,System.Type)
<0x00291>
at
System.ServiceModel.Description.ContractDescriptionGenerator.GetOrCreateOperation
(System.ServiceModel.Description.ContractDescription,System.Reflection.MethodInfo,System.Reflection.MethodInfo,System.ServiceModel.OperationContractAttribute,System.Type)
<0x001b0>
at System.ServiceModel.Description.ContractDescriptionGenerator.GetContract
(System.Type,System.Type,bool) <0x0086a>
at System.ServiceModel.Description.ContractDescriptionGenerator.GetContract
(System.Type,System.Type) <0x00015>
at System.ServiceModel.Description.ContractDescriptionGenerator.GetContract
(System.Type) <0x00012>
at System.ServiceModel.Description.ContractDescription.GetContract
(System.Type) <0x00010>
at System.ServiceModel.ChannelFactory`1<object>.CreateDescription () <0x0001f>
at System.ServiceModel.ChannelFactory`1<object>..ctor (System.Type) <0x00044>
at System.ServiceModel.ChannelFactory`1<object>..ctor
(System.ServiceModel.Channels.Binding,System.ServiceModel.EndpointAddress)
<0x00028>
at System.ServiceModel.ClientBase`1<object>.Initialize
(System.ServiceModel.InstanceContext,System.ServiceModel.Channels.Binding,System.ServiceModel.EndpointAddress)
<0x00037>
at System.ServiceModel.ClientBase`1<object>..ctor
(System.ServiceModel.InstanceContext,System.ServiceModel.Channels.Binding,System.ServiceModel.EndpointAddress)
<0x00042>
at System.ServiceModel.ClientBase`1<object>..ctor
(System.ServiceModel.Channels.Binding,System.ServiceModel.EndpointAddress)
<0x00045>
at MediaServices.TecTeacherClient..ctor
(System.ServiceModel.Channels.Binding,System.ServiceModel.EndpointAddress)
<0x00016>
at FirstIPhoneApp.AppDelegate.CallListEpisodes () <0x0006c>
at FirstIPhoneApp.AppDelegate.ListButtonTouchDown (object,System.EventArgs)
<0x00010>
at MonoTouch.UIKit.UIControlEventProxy.Activated () <0x0001e>
at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) <0xffffffff>
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain
(int,string[],intptr,intptr) <0x00004>
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain
(int,string[],intptr,intptr) <0xffffffff>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x00089>
at MonoTouch.UIKit.UIApplication.Main (string[]) <0x00014>
at FirstIPhoneApp.Application.Main (string[]) <0x00010>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>


Expected Results:
It should just work :)

How often does this happen? 
Always

Additional Information:
If I enable -nolink for mtouch then it works. BUT THEN it does not work on the
device but only only the emulator.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list