[Mono-bugs] [Bug 548934] New: Monotouch fails when running a webservice on the device (without -nolink flag)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 21 16:14:25 EDT 2009


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


           Summary: Monotouch fails when running a webservice on the
                    device (without -nolink flag)
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: chrisntr at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer


Description of Problem:

Can't connect to a webservice whilst debugging from XCode on a real device
(although this happens everytime - just I can see the error whilst debugging in
Xcode).

Steps to reproduce the problem:
1. Create new project.
2. Add the default web service (TempConvert)
3. Add the following lines of code to call the service in "Finished Launching".

www.w3schools.com.TempConvert tempConvert = new
www.w3schools.com.TempConvert();
Console.WriteLine (tempConvert.CelsiusToFahrenheit("37"));

4. Run Debug in Xcode.
5. Build and run on Device in Xcode.
6. Error happens and leaves stack trace below.

Actual Results:

Missing method .ctor in assembly
/var/mobile/Applications/3EB21444-A1FB-4AFB-97DC-7681FD92B4E9/TestWebservice.app/TestWebservice.exe,
type System.ComponentModel.DesignerCategoryAttributeThe class
System.ComponentModel.DesignerCategoryAttribute could not be loaded, used in
TestWebserviceCan't find custom attr constructor image:
/var/mobile/Applications/3EB21444-A1FB-4AFB-97DC-7681FD92B4E9/TestWebservice.app/TestWebservice.exe
mtoken: 0x0a00001c
Unhandled Exception: System.TypeLoadException: Could not load type
'System.ComponentModel.DesignerCategoryAttribute' from assembly
'TestWebservice'.
  at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider
obj, System.Type attributeType) [0x00000] 
  at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj,
System.Type attributeType, Boolean inherit) [0x00000] 
  at System.MonoType.GetCustomAttributes (System.Type attributeType, Boolean
inherit) [0x00000] 
  at System.Web.Services.Protocols.LogicalTypeInfo..ctor (System.Type t)
[0x00000] 
  at System.Web.Services.Protocols.TypeStubManager.GetLogicalTypeInfo
(System.Type t) [0x00000] 
  at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type t,
System.String protocolName) [0x00000] 
  at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor () [0x00000] 
  at TestWebservice.www.w3schools.com.TempConvert..ctor () [0x00000] 
  at TestWebservice.AppDelegate.FinishedLaunching
(MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options)
[0x00000] 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String
principalClassName, System.String delegateClassName) [0x00000] 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] 
  at TestWebservice.Application.Main (System.String[] args) [0x00000] 

Expected Results:

98.6 in the Console window.

How often does this happen?

Everytime. 


Additional Information:

Running -nolink fixes the problem.

-- 
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